Next: , Up: Callbacks


callback

Syntax

— Macro: callback symbol => pointer

Arguments and Values

symbol
A symbol denoting a callback.
pointer
new-value
A pointer.

Description

The callback macro is analogous to the standard CL special operator function and will return a pointer to the callback denoted by the symbol name.

Examples

  CFFI> (defcallback sum :int ((a :int) (b :int))
          (+ a b))
  => SUM
  CFFI> (callback sum)
  => #<A Mac Pointer #x102350>

See Also

get-callback
defcallback