2008 07 06Using libffi
libffi can call any function provided you know its definition. (Thanks BridgeSupport !)
MACOSX or libffi will bail with
#error "Unsupported OS type".
#define MACOSX #import <ffi/ffi.h>
To your project's build configuration, add
-lffi as Other Linker Flags.
Get the source and check the folder