summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-10-04 03:11:41 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-10-04 03:11:41 +0200
commit3e29cb806cc64a2700e341faa919ace4f1dbe2a8 (patch)
tree4e336ea7b9c95b3ecc4be1557b76e78250d54843
parent0d41be3790b2f221621ec8bbd7f365508683cb18 (diff)
[GDnative] add future-proof next field to godot_gdnative_api_struct (a la Vulkan)
-rw-r--r--modules/gdnative/SCsub2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub
index 22e3cbc784..f8a0d292c4 100644
--- a/modules/gdnative/SCsub
+++ b/modules/gdnative/SCsub
@@ -30,6 +30,7 @@ def _build_gdnative_api_struct_header(api):
'#endif',
'',
'typedef struct godot_gdnative_api_struct {',
+ '\tvoid *next;',
'\tconst char *version;',
]
@@ -57,6 +58,7 @@ def _build_gdnative_api_struct_source(api):
'',
'const char *_gdnative_api_version = "%s";' % api['version'],
'extern const godot_gdnative_api_struct api_struct = {',
+ '\tNULL,',
'\t_gdnative_api_version,',
]