billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
640 stars 93 forks source link

Add way to generate C FFI #42

Open billyquith opened 8 years ago

billyquith commented 8 years ago

C++ can be difficult to inter-operate with. C is much more simple. Provide a way to use a declared C++ interface via C. This could then be used by things like Luajit and Julia.

billyquith commented 7 years ago

This can now take advantage of the per-function data in the runtime/2.0 refactoring.

billyquith commented 6 years ago
extern "C" typedef void (*cfn)(void);
template <typename T> cfn binder();