Skip to content

Commit f8ca861

Browse files
committed
Merge pull request godotengine#103137 from dsnopek/extension-api-precision
GDExtension: Include precision in `extension_api.json`
2 parents 3d9b379 + bd962dd commit f8ca861

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)