[gambit-list] Re: How to define c-lambda for this routine.
lucier at math.purdue.edu
Fri May 12 18:29:49 EDT 2006
On May 12, 2006, at 4:52 PM, Marc Feeley wrote:
> If you know the GC will never be called in the C function or you
> don't care about safety, you could use the following approach.
> There is a macro ___BODY(obj) defined in include/gambit.h which
> returns a pointer to the body of any memory allocated object. In
> the case of vectors, it is a pointer to the first element. So you
> could write:
> (define rdft
> (c-lambda (long long scheme-object scheme-object scheme-object)
If the C code doesn't call back into Scheme then the gc can't be
More information about the Gambit-list