JBenda / inkcpp

Inkle Ink C++ Runtime with JSON>Binary Compiler
MIT License
70 stars 13 forks source link

Introducing C bindings #50

Closed JBenda closed 8 months ago

JBenda commented 2 years ago

Based on multiple requests, it would, may be possible to create C bindings for inkcpp.

It would be a new subdirectory (inkcpp_clib or so) and would do inkcpp stuff but with c functions and external, the bindings should not take too much code, probably a handling the classes implicit as void* pointer passed back to the C code.

A new installation target for CMake is also required (like clib) to install only the c files. Attention: not mixing up C and C++ header when exporting libs, also a different findInkcpp.cmake is needed for that.

JBenda commented 8 months ago

Implemented in #75