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

question: can you make another haxe-cpp-bridge? #41

Closed sonygod closed 1 year ago

sonygod commented 2 years ago

question: can you make another haxe-cpp-bridge?

because current hxcpp have a lots of unknow area ,I like your haxe-c-bridge,everything seem well now .

haxiomic commented 2 years ago

Checkout the sample code for examples of making libs with hxcpp

https://github.com/HaxeFoundation/hxcpp/tree/master/test/extern-lib

@:nativeGen is what you want to make classes safe to use with outside C++

the thing missing that haxe c bridge adds is thread safety - haxe c bridge runs the haxe code in a separate thread

maybe this thread safety component could be separated out