added assert to disassembly, fixes #1641
This commit is contained in:
parent
963845eea9
commit
6227058098
1 changed files with 8 additions and 0 deletions
|
@ -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 a new issue