summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-01-06 00:39:35 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-01-06 00:39:35 -0300
commitbd0356207631602f35e2111bc73bca2bd53e91a1 (patch)
tree6d8fd9e373913496281aed33016d0b4f6aa7a8dc /bin
parentf75ae815d51571287892d77414d45e15bfdb849b (diff)
-Resolved bug that made yield() not work in some situations, fixes #884
Diffstat (limited to 'bin')
-rw-r--r--bin/tests/test_gdscript.cpp20
1 files changed, 20 insertions, 0 deletions
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<GDScript>& p_class,const Vector<String>
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 ";