Aurel300/ammer

C code

Closed this issue · 1 comments

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.

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.