summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-07-25 17:01:01 -0300
committerGeorge Marques <george@gmarqu.es>2018-07-25 20:50:12 -0300
commita62f4af7ba86f612e558ecf11c8d4070b4e3fdac (patch)
tree3d07dfd13e85fefbfed64ea8d133953dee55f1aa /modules/gdscript
parent3d6609303bc2def39fb5b87b9325b94b2549ede8 (diff)
GDScript: Enable built-in function introspection in non-tools
Only for debug builds. Fix problems in non-tools targets.
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_functions.cpp b/modules/gdscript/gdscript_functions.cpp
index 63286b2e91..f2e52d48dd 100644
--- a/modules/gdscript/gdscript_functions.cpp
+++ b/modules/gdscript/gdscript_functions.cpp
@@ -1412,7 +1412,7 @@ bool GDScriptFunctions::is_deterministic(Function p_func) {
MethodInfo GDScriptFunctions::get_info(Function p_func) {
-#ifdef TOOLS_ENABLED
+#ifdef DEBUG_ENABLED
//using a switch, so the compiler generates a jumptable
switch (p_func) {