Style: Remove redundant DEBUG_METHODS_ENABLED

• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
This commit is contained in:
Thaddeus Crews
2025-05-15 13:09:41 -05:00
parent 5e27318b6c
commit d237e31a89
25 changed files with 328 additions and 337 deletions

View File

@ -585,7 +585,7 @@ static bool _on_core_api_assembly_loaded() {
debug = true;
#else
debug = false;
#endif
#endif // DEBUG_ENABLED
GDMonoCache::managed_callbacks.GD_OnCoreApiAssemblyLoaded(debug);
@ -690,13 +690,13 @@ void GDMono::_try_load_project_assembly() {
#endif
void GDMono::_init_godot_api_hashes() {
#ifdef DEBUG_METHODS_ENABLED
#ifdef DEBUG_ENABLED
get_api_core_hash();
#ifdef TOOLS_ENABLED
get_api_editor_hash();
#endif // TOOLS_ENABLED
#endif // DEBUG_METHODS_ENABLED
#endif // DEBUG_ENABLED
}
#ifdef TOOLS_ENABLED

View File

@ -76,9 +76,9 @@ class GDMono {
void _try_load_project_assembly();
#endif
#ifdef DEBUG_METHODS_ENABLED
#ifdef DEBUG_ENABLED
uint64_t api_core_hash = 0;
#endif
#endif // DEBUG_ENABLED
#ifdef TOOLS_ENABLED
uint64_t api_editor_hash = 0;
#endif
@ -92,7 +92,7 @@ protected:
static GDMono *singleton;
public:
#ifdef DEBUG_METHODS_ENABLED
#ifdef DEBUG_ENABLED
uint64_t get_api_core_hash() {
if (api_core_hash == 0) {
api_core_hash = ClassDB::get_api_hash(ClassDB::API_CORE);
@ -107,7 +107,7 @@ public:
return api_editor_hash;
}
#endif // TOOLS_ENABLED
#endif // DEBUG_METHODS_ENABLED
#endif // DEBUG_ENABLED
_FORCE_INLINE_ static String get_expected_api_build_config() {
#ifdef TOOLS_ENABLED
@ -117,7 +117,7 @@ public:
return "Debug";
#else
return "Release";
#endif
#endif // DEBUG_ENABLED
#endif
}