From cdc29926afd37feddbd93ebbafd2e3987c728881 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Tue, 3 Oct 2017 05:23:05 +0200 Subject: [GDnative] replace gdnative_api_struct.h by a json-based autogenerated system --- modules/gdnative/gdnative.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'modules/gdnative/gdnative.cpp') diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp index f0c09a3370..373b98dc8b 100644 --- a/modules/gdnative/gdnative.cpp +++ b/modules/gdnative/gdnative.cpp @@ -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", -- cgit v1.2.3