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: {
|
case GDFunction::ADDR_TYPE_NIL: {
|
||||||
return "nil";
|
return "nil";
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<err>";
|
return "<err>";
|
||||||
|
@ -828,6 +829,13 @@ static void _disassemble_class(const Ref<GDScript>& p_class,const Vector<String>
|
||||||
txt+=" end";
|
txt+=" end";
|
||||||
incr+=1;
|
incr+=1;
|
||||||
} break;
|
} break;
|
||||||
|
case GDFunction::OPCODE_ASSERT: {
|
||||||
|
|
||||||
|
txt+=" assert ";
|
||||||
|
txt+=DADDR(1);
|
||||||
|
incr+=2;
|
||||||
|
|
||||||
|
} break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue