summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/main.cpp34
-rw-r--r--misc/extension_api_validation/4.1-stable_4.2-stable.expected (renamed from misc/extension_api_validation/4.1-stable.expected)0
-rw-r--r--misc/extension_api_validation/4.2-stable.expected9
3 files changed, 28 insertions, 15 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 3d703578a0..95d414a9f7 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -2987,24 +2987,28 @@ bool Main::start() {
return false;
}
- if (dump_gdextension_interface) {
- GDExtensionInterfaceDump::generate_gdextension_interface_file("gdextension_interface.h");
- }
+ // GDExtension API and interface.
+ {
+ if (dump_gdextension_interface) {
+ GDExtensionInterfaceDump::generate_gdextension_interface_file("gdextension_interface.h");
+ }
- if (dump_extension_api) {
- Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons.
- GDExtensionAPIDump::generate_extension_json_file("extension_api.json", include_docs_in_extension_api_dump);
- }
+ if (dump_extension_api) {
+ Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons.
+ GDExtensionAPIDump::generate_extension_json_file("extension_api.json", include_docs_in_extension_api_dump);
+ }
- if (dump_gdextension_interface || dump_extension_api) {
- OS::get_singleton()->set_exit_code(EXIT_SUCCESS);
- return false;
- }
+ if (dump_gdextension_interface || dump_extension_api) {
+ OS::get_singleton()->set_exit_code(EXIT_SUCCESS);
+ return false;
+ }
- if (validate_extension_api) {
- bool valid = GDExtensionAPIDump::validate_extension_json_file(validate_extension_api_file) == OK;
- OS::get_singleton()->set_exit_code(valid ? EXIT_SUCCESS : EXIT_FAILURE);
- return false;
+ if (validate_extension_api) {
+ Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons.
+ bool valid = GDExtensionAPIDump::validate_extension_json_file(validate_extension_api_file) == OK;
+ OS::get_singleton()->set_exit_code(valid ? EXIT_SUCCESS : EXIT_FAILURE);
+ return false;
+ }
}
#ifndef DISABLE_DEPRECATED
diff --git a/misc/extension_api_validation/4.1-stable.expected b/misc/extension_api_validation/4.1-stable_4.2-stable.expected
index d51523bd38..d51523bd38 100644
--- a/misc/extension_api_validation/4.1-stable.expected
+++ b/misc/extension_api_validation/4.1-stable_4.2-stable.expected
diff --git a/misc/extension_api_validation/4.2-stable.expected b/misc/extension_api_validation/4.2-stable.expected
new file mode 100644
index 0000000000..0538195e9e
--- /dev/null
+++ b/misc/extension_api_validation/4.2-stable.expected
@@ -0,0 +1,9 @@
+This file contains the expected output of --validate-extension-api when run against the extension_api.json of the
+4.2-stable tag (the basename of this file).
+
+Only lines that start with "Validate extension JSON:" matter, everything else is considered a comment and ignored. They
+should instead be used to justify these changes and describe how users should work around these changes.
+
+Add new entries at the end of the file.
+
+## Changes between 4.2-stable and 4.3-stable