summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-07 21:48:03 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-07 21:48:03 -0300
commit6227058098f9d826cbb57c1403c9ae7d2b2a31d1 (patch)
tree33704dc05be0b3bcb75745efee1393862b3af8c7 /bin
parent963845eea9794c1e35e536da57cb22b01fd58fa7 (diff)
added assert to disassembly, fixes #1641
Diffstat (limited to 'bin')
-rw-r--r--bin/tests/test_gdscript.cpp8
1 files changed, 8 insertions, 0 deletions
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<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;
}