[GDnative] replace gdnative_api_struct.h by a json-based autogenerated system

This commit is contained in:
Emmanuel Leblond
2017-10-03 05:23:05 +02:00
parent 6dc1025e63
commit cdc29926af
5 changed files with 4586 additions and 734 deletions

View File

@ -40,15 +40,8 @@
const String init_symbol = "godot_gdnative_init";
const String terminate_symbol = "godot_gdnative_terminate";
#define GDAPI_FUNC(name, ret_type, ...) name,
#define GDAPI_FUNC_VOID(name, ...) name,
const godot_gdnative_api_struct api_struct = {
GODOT_GDNATIVE_API_FUNCTIONS
};
#undef GDAPI_FUNC
#undef GDAPI_FUNC_VOID
// Defined in gdnative_api_struct.gen.cpp
extern const godot_gdnative_api_struct api_struct;
String GDNativeLibrary::platform_names[NUM_PLATFORMS + 1] = {
"X11_32bit",