diff options
| author | Juan Linietsky | 2015-04-07 21:48:03 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-04-07 21:48:03 -0300 |
| commit | 6227058098f9d826cbb57c1403c9ae7d2b2a31d1 (patch) | |
| tree | 33704dc05be0b3bcb75745efee1393862b3af8c7 /bin/tests/test_gdscript.cpp | |
| parent | 963845eea9794c1e35e536da57cb22b01fd58fa7 (diff) | |
| download | godot-6227058098f9d826cbb57c1403c9ae7d2b2a31d1.tar.gz godot-6227058098f9d826cbb57c1403c9ae7d2b2a31d1.tar.zst godot-6227058098f9d826cbb57c1403c9ae7d2b2a31d1.zip | |
added assert to disassembly, fixes #1641
Diffstat (limited to 'bin/tests/test_gdscript.cpp')
| -rw-r--r-- | bin/tests/test_gdscript.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/tests/test_gdscript.cpp b/bin/tests/test_gdscript.cpp index 4b4030954..f43828553 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; } |
