chickadee » crunch » define-crunch-callback

(define-crunch-callback (NAME (ARGFTYPE1 VAR1) ...) RESULTFTYPE BODY ...)syntax

Equivalent to define-external, but makes the callback accessible in subsequent translations of crunch code.

Note that you have to pass -emit-external-prototypes-first to csc (or chicken) when you use crunch callbacks to place function prototypes for the callbacks in front of code generated by crunch.