C code
Closed this issue · 1 comments
Aurel300 commented
Ideally APIs should be mapped one-to-one, but it might be good to provide an option to inject C code directly into the glue code. All of ammer targets need to compile some C or C++ after all.
Aurel300 commented
This is now implemented as @:ammer.c.prereturn
and @:ammer.c.return
. Keeping this issue open until I figure out how to do it on hxcpp as well. It might be best for hxcpp to also generate stubs like all the other targets for consistency. Would also fix the messy header-renaming issues.