diff options
| author | yg2f | 2016-09-20 13:54:17 +0200 |
|---|---|---|
| committer | yg2f | 2016-09-20 13:54:17 +0200 |
| commit | 217e09c79da008e15bd789260e8b2513689c90bd (patch) | |
| tree | 2dab513d0e19ffb88653c6e74fe6b81c892997c8 /modules/gdscript/gd_compiler.cpp | |
| parent | 1c50dfdf6c352574391c953d88732382adc15e83 (diff) | |
| download | godot-217e09c79da008e15bd789260e8b2513689c90bd.tar.gz godot-217e09c79da008e15bd789260e8b2513689c90bd.tar.zst godot-217e09c79da008e15bd789260e8b2513689c90bd.zip | |
Diffstat (limited to 'modules/gdscript/gd_compiler.cpp')
| -rw-r--r-- | modules/gdscript/gd_compiler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp index 2e2cbe7b2..b75b13551 100644 --- a/modules/gdscript/gd_compiler.cpp +++ b/modules/gdscript/gd_compiler.cpp @@ -1005,12 +1005,12 @@ Error GDCompiler::_parse_block(CodeGen& codegen,const GDParser::BlockNode *p_blo switch(s->type) { case GDParser::Node::TYPE_NEWLINE: { - +#ifdef DEBUG_ENABLED const GDParser::NewLineNode *nl = static_cast<const GDParser::NewLineNode*>(s); codegen.opcodes.push_back(GDFunction::OPCODE_LINE); codegen.opcodes.push_back(nl->line); codegen.current_line=nl->line; - +#endif } break; case GDParser::Node::TYPE_CONTROL_FLOW: { // try subblocks @@ -1201,8 +1201,10 @@ Error GDCompiler::_parse_block(CodeGen& codegen,const GDParser::BlockNode *p_blo codegen.opcodes.push_back(ret); } break; case GDParser::Node::TYPE_BREAKPOINT: { +#ifdef DEBUG_ENABLED // try subblocks codegen.opcodes.push_back(GDFunction::OPCODE_BREAKPOINT); +#endif } break; case GDParser::Node::TYPE_LOCAL_VAR: { |
