Merge pull request #106456 from Repiteo/style/remove-DEBUG_METHODS_ENABLED
Style: Remove redundant `DEBUG_METHODS_ENABLED` macro
This commit is contained in:
@ -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);
|
||||
|
||||
@ -691,13 +691,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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user