ralfbiedert / interoptopus

The polyglot bindings generator for your library (C#, C, Python, …) 🐙
302 stars 27 forks source link

Use name and parameter names in generated bindings for callback macro #58

Closed pixsperdavid closed 1 year ago

pixsperdavid commented 1 year ago

I have also added a call_if_some function to the callback macro which allows callbacks to be optionally called (without panicing if the fn ptr is null).

ralfbiedert commented 1 year ago

Ah this is much nicer, thanks!