Calling Factor from C - Factor Documentation (original) (raw)

Calling Factor from C
Factor handbook » C library interface

Prev: Calling C from Factor
Next: Passing data between Factor and C

Callbacks can be defined and passed to C code as function pointers; the C code can then invoke the callback and run Factor code:
alien-callback ( return parameters abi quot -- alien )
CALLBACK:

There are some caveats concerning the conversion of Factor objects to C values, and vice versa. See Passing data between Factor and C.

See also
Byte arrays and the garbage collector