aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_compiler.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2017-03-13 00:17:13 +0100
committerPedro J. Estébanez2017-03-13 00:23:42 +0100
commit204a7481e0c8f5fe588b5d2582ba1d6d44bc97c1 (patch)
treed8fce406dc816856cd8af8da789991f95a650f1e /modules/gdscript/gd_compiler.cpp
parent50c6a6d9b11fc981fd9d5e47dd09255f84796588 (diff)
downloadgodot-204a7481e0c8f5fe588b5d2582ba1d6d44bc97c1.tar.gz
godot-204a7481e0c8f5fe588b5d2582ba1d6d44bc97c1.tar.zst
godot-204a7481e0c8f5fe588b5d2582ba1d6d44bc97c1.zip
Diffstat (limited to 'modules/gdscript/gd_compiler.cpp')
-rw-r--r--modules/gdscript/gd_compiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp
index acc14018d..50a13b9d0 100644
--- a/modules/gdscript/gd_compiler.cpp
+++ b/modules/gdscript/gd_compiler.cpp
@@ -1189,6 +1189,7 @@ Error GDCompiler::_parse_block(CodeGen& codegen,const GDParser::BlockNode *p_blo
}
} break;
case GDParser::Node::TYPE_ASSERT: {
+#ifdef DEBUG_ENABLED
// try subblocks
const GDParser::AssertNode *as = static_cast<const GDParser::AssertNode*>(s);
@@ -1199,6 +1200,7 @@ Error GDCompiler::_parse_block(CodeGen& codegen,const GDParser::BlockNode *p_blo
codegen.opcodes.push_back(GDFunction::OPCODE_ASSERT);
codegen.opcodes.push_back(ret);
+#endif
} break;
case GDParser::Node::TYPE_BREAKPOINT: {
#ifdef DEBUG_ENABLED