diff options
| author | Pedro J. Estébanez | 2017-03-13 00:17:13 +0100 |
|---|---|---|
| committer | Pedro J. Estébanez | 2017-03-13 00:23:42 +0100 |
| commit | 204a7481e0c8f5fe588b5d2582ba1d6d44bc97c1 (patch) | |
| tree | d8fce406dc816856cd8af8da789991f95a650f1e /modules/gdscript/gd_compiler.cpp | |
| parent | 50c6a6d9b11fc981fd9d5e47dd09255f84796588 (diff) | |
| download | godot-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.cpp | 2 |
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 |
