omni
omni copied to clipboard
Export to C and C++
Export the C generated source as a single header, and define all entry points as inline
functions.
Some progress here:
https://github.com/vitreo12/omni/tree/compileToC
The main issue would be how to deal with omni_alloc
? It would require a conditional (when defined(omni_export_c)
) rewrite to deal with user submitting the void*
function pointers to alloc functions on a per call basis... Too much work for now
The C
version will be a cleaned up version of the Nim C export.
The C++
version will wrap everything in a class.