added assert to disassembly, fixes #1641

This commit is contained in:
Juan Linietsky 2015-04-07 21:48:03 -03:00
parent 963845eea9
commit 6227058098

View file

@ -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;
}