Skip to content

Commit bd962dd

Browse files
committed
GDExtension: Include precision in extension_api.json
1 parent 8ed125b commit bd962dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/extension/extension_api_dump.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ Dictionary GDExtensionAPIDump::generate_extension_api(bool p_include_docs) {
118118
header["version_build"] = VERSION_BUILD;
119119
header["version_full_name"] = VERSION_FULL_NAME;
120120

121+
#if REAL_T_IS_DOUBLE
122+
header["precision"] = "double";
123+
#else
124+
header["precision"] = "single";
125+
#endif
126+
121127
api_dump["header"] = header;
122128
}
123129

0 commit comments

Comments
 (0)