Fix self reference issue in core structures for GDNative plugins
(cherry picked from commit bf9a97c2cb
)
This commit is contained in:
parent
ef92c9740f
commit
ea3a42c500
|
@ -185,7 +185,7 @@ def _build_gdnative_api_struct_source(api):
|
||||||
'extern const godot_gdnative_core_' + ('{0}_{1}_api_struct api_{0}_{1}'.format(core['version']['major'], core['version']['minor'])) + ' = {',
|
'extern const godot_gdnative_core_' + ('{0}_{1}_api_struct api_{0}_{1}'.format(core['version']['major'], core['version']['minor'])) + ' = {',
|
||||||
'\tGDNATIVE_' + core['type'] + ',',
|
'\tGDNATIVE_' + core['type'] + ',',
|
||||||
'\t{' + str(core['version']['major']) + ', ' + str(core['version']['minor']) + '},',
|
'\t{' + str(core['version']['major']) + ', ' + str(core['version']['minor']) + '},',
|
||||||
'\t' + ('NULL' if not core['next'] else ('(const godot_gdnative_api_struct *)& api_{0}_{1}'.format(core['version']['major'], core['version']['minor']))) + ','
|
'\t' + ('NULL' if not core['next'] else ('(const godot_gdnative_api_struct *)& api_{0}_{1}'.format(core['next']['version']['major'], core['next']['version']['minor']))) + ','
|
||||||
]
|
]
|
||||||
|
|
||||||
for funcdef in core['api']:
|
for funcdef in core['api']:
|
||||||
|
|
Loading…
Reference in New Issue