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

Consider converting instance fields #21

Closed haxiomic closed 3 years ago

haxiomic commented 3 years ago
class Example {
    public function new(str: String);
    public function method(x: Int): Example;
}

Would generate the following C functions

HaxeObject Example_new();
HaxeObject Example_method(HaxeObject instance, int x);

And automatically apply the retainer wrapping/unwrapping

haxiomic commented 3 years ago

Done :]