You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs mention how to define a js function and use it as a C function pointer. How would one go the other way around?
I imagine this to be trivial as the lib already does this when searching for library symbols (which are just function pointers), and giving them the appropriate calling meta information. Yet I haven't found anything easily usable in the code.
The text was updated successfully, but these errors were encountered:
Supporting function pointers as a result type is yet to be developed feature. It shoukd work if you use the ffi compatible interface with Functions, excatly like with node-ffi, but there is no fastcall syntax and unit tests covering this fature yet.
The docs mention how to define a js function and use it as a C function pointer. How would one go the other way around?
I imagine this to be trivial as the lib already does this when searching for library symbols (which are just function pointers), and giving them the appropriate calling meta information. Yet I haven't found anything easily usable in the code.
The text was updated successfully, but these errors were encountered: