mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 09:51:37 +00:00
added assert to disassembly, fixes #1641
This commit is contained in:
parent
963845eea9
commit
6227058098
@ -478,6 +478,7 @@ static String _disassemble_addr(const Ref<GDScript>& p_script,const GDFunction&
|
||||
case GDFunction::ADDR_TYPE_NIL: {
|
||||
return "nil";
|
||||
} break;
|
||||
|
||||
}
|
||||
|
||||
return "<err>";
|
||||
@ -828,6 +829,13 @@ static void _disassemble_class(const Ref<GDScript>& p_class,const Vector<String>
|
||||
txt+=" end";
|
||||
incr+=1;
|
||||
} break;
|
||||
case GDFunction::OPCODE_ASSERT: {
|
||||
|
||||
txt+=" assert ";
|
||||
txt+=DADDR(1);
|
||||
incr+=2;
|
||||
|
||||
} break;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user