summaryrefslogtreecommitdiff
path: root/modules/mono/class_db_api_json.h
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2019-07-20 16:20:49 +0200
committerGitHub <noreply@github.com>2019-07-20 16:20:49 +0200
commit437939589234559febabb9a4c392145521a9c3a5 (patch)
treed38b344c599ac26f119d3cdfd543d3cf498c0374 /modules/mono/class_db_api_json.h
parent60efd67034724f3563d46e9ff3fd2db34763535b (diff)
parentec679dfffa15ac531e46df8b72aa414ef9c90cab (diff)
Merge pull request #30710 from neikeq/issue-30526
Fix mono module build errors for release templates
Diffstat (limited to 'modules/mono/class_db_api_json.h')
-rw-r--r--modules/mono/class_db_api_json.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mono/class_db_api_json.h b/modules/mono/class_db_api_json.h
index 0aa9c20930..ddfe2debea 100644
--- a/modules/mono/class_db_api_json.h
+++ b/modules/mono/class_db_api_json.h
@@ -31,9 +31,16 @@
#ifndef CLASS_DB_API_JSON_H
#define CLASS_DB_API_JSON_H
+// 'core/method_bind.h' defines DEBUG_METHODS_ENABLED, but it looks like we
+// cannot include it here. That's why we include it through 'core/class_db.h'.
#include "core/class_db.h"
+
+#ifdef DEBUG_METHODS_ENABLED
+
#include "core/ustring.h"
void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api);
+#endif // DEBUG_METHODS_ENABLED
+
#endif // CLASS_DB_API_JSON_H