From bd0356207631602f35e2111bc73bca2bd53e91a1 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 6 Jan 2015 00:39:35 -0300 Subject: -Resolved bug that made yield() not work in some situations, fixes #884 --- bin/tests/test_gdscript.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bin/tests') diff --git a/bin/tests/test_gdscript.cpp b/bin/tests/test_gdscript.cpp index b62deee2cd..4b4030954a 100644 --- a/bin/tests/test_gdscript.cpp +++ b/bin/tests/test_gdscript.cpp @@ -738,6 +738,26 @@ static void _disassemble_class(const Ref& p_class,const Vector incr=4+argc; } break; + case GDFunction::OPCODE_YIELD: { + + txt+=" yield "; + incr=1; + + } break; + case GDFunction::OPCODE_YIELD_SIGNAL: { + + txt+=" yield_signal "; + txt+=DADDR(1); + txt+=","; + txt+=DADDR(2); + incr=3; + } break; + case GDFunction::OPCODE_YIELD_RESUME: { + + txt+=" yield resume: "; + txt+=DADDR(1); + incr=2; + } break; case GDFunction::OPCODE_JUMP: { txt+=" jump "; -- cgit v1.2.3