haxiomic / haxe-c-bridge

Easily interact with haxe classes from C with an automatically generated C header
MIT License
51 stars 5 forks source link

If send message occurs before main() handler will not yet be set #1

Closed haxiomic closed 3 years ago

haxiomic commented 3 years ago

Is it just chance that main() sets handler before first sendMessage? Try adding a sleep to main() before set handler to see if this causes failure

maybe c-code-gen approach is better

haxiomic commented 3 years ago

Using code gen approach