You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Skip asserts on non-debug builds at compiler level
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user