Package: cffi

Macro callback

Lambda List

callback (name)

Arguments

symbol -- A symbol denoting a callback.

Return Value

A pointer.

Details

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