At Wed, 2 Sep 2020 14:05:11 -0700 (PDT), dotoscat wrote:
> There are a function such scheme_make_prim_w_arity
> <
https://docs.racket-lang.org/inside/Procedures.html#%28cpp._scheme_make_prim_w
> _arity%29>
> for the CS version? The idea is to use Racket
> as a scripting language for a C program.
There's currently no support in the C API of Racket CS for constructing
a Scheme procedure that calls a C procedure. You have to work from the
Scheme side using `foreign-procedure` to create a wrapper for a C
function.
Matthew