[GDnative] add future-proof next field to godot_gdnative_api_struct (a la Vulkan)
This commit is contained in:
parent
0d41be3790
commit
3e29cb806c
|
@ -30,6 +30,7 @@ def _build_gdnative_api_struct_header(api):
|
||||||
'#endif',
|
'#endif',
|
||||||
'',
|
'',
|
||||||
'typedef struct godot_gdnative_api_struct {',
|
'typedef struct godot_gdnative_api_struct {',
|
||||||
|
'\tvoid *next;',
|
||||||
'\tconst char *version;',
|
'\tconst char *version;',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -57,6 +58,7 @@ def _build_gdnative_api_struct_source(api):
|
||||||
'',
|
'',
|
||||||
'const char *_gdnative_api_version = "%s";' % api['version'],
|
'const char *_gdnative_api_version = "%s";' % api['version'],
|
||||||
'extern const godot_gdnative_api_struct api_struct = {',
|
'extern const godot_gdnative_api_struct api_struct = {',
|
||||||
|
'\tNULL,',
|
||||||
'\t_gdnative_api_version,',
|
'\t_gdnative_api_version,',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue