It's unclear what this create function should return:
|
GDNativeExtensionClassCreateInstance create_instance_func; /* this one is mandatory */ |
But looking at the code in main godot repo, which handles this objects, it's obvious that there are specific requirement, including functions this object should have. Godot-cpp is complient with it as it appears.
Thus, to me it seems like it's important to cover this information in the header file. Be it a comment or (preferably) a struct.
It's unclear what this
createfunction should return:godot-headers/godot/gdnative_interface.h
Line 228 in e00386d
But looking at the code in main godot repo, which handles this objects, it's obvious that there are specific requirement, including functions this object should have.
Godot-cppis complient with it as it appears.Thus, to me it seems like it's important to cover this information in the header file. Be it a comment or (preferably) a struct.