From 6227058098f9d826cbb57c1403c9ae7d2b2a31d1 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 7 Apr 2015 21:48:03 -0300 Subject: added assert to disassembly, fixes #1641 --- bin/tests/test_gdscript.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/tests/test_gdscript.cpp b/bin/tests/test_gdscript.cpp index 4b4030954a..f43828553d 100644 --- a/bin/tests/test_gdscript.cpp +++ b/bin/tests/test_gdscript.cpp @@ -478,6 +478,7 @@ static String _disassemble_addr(const Ref& p_script,const GDFunction& case GDFunction::ADDR_TYPE_NIL: { return "nil"; } break; + } return ""; @@ -828,6 +829,13 @@ static void _disassemble_class(const Ref& p_class,const Vector txt+=" end"; incr+=1; } break; + case GDFunction::OPCODE_ASSERT: { + + txt+=" assert "; + txt+=DADDR(1); + incr+=2; + + } break; } -- cgit v1.2.3