소스 검색

[GDnative] add future-proof next field to godot_gdnative_api_struct (a la Vulkan)

Emmanuel Leblond 8 년 전
부모
커밋
3e29cb806c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      modules/gdnative/SCsub

+ 2 - 0
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,',
     ]