diff options
author | Nicolas Noble <pixel@nobis-crew.org> | 2013-08-05 11:53:57 -0700 |
---|---|---|
committer | Nicolas Noble <pixel@nobis-crew.org> | 2013-08-05 11:53:57 -0700 |
commit | cd5da6097812baf125c2dc4f1d12e1a3f4985464 (patch) | |
tree | ff16f50f3bdd9dad22ec6a1020b1c577a7969ad0 /tests | |
parent | 911858d8d7cab0108f1c14abd676ad37ccb9c95a (diff) |
Greatly simplifying the LuaYield mechanism so to avoid double-recursive calls in resume().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Lua.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-Lua.cc b/tests/test-Lua.cc index ed6e754..9337d35 100644 --- a/tests/test-Lua.cc +++ b/tests/test-Lua.cc @@ -115,7 +115,7 @@ int sLua_ObjectTest::ObjectTest_proceed_static(Lua & L, int n, int caller) throw break; case OBJECTTEST_YIELDTEST: - L.yield(Future<int>([=]() mutable { + return L.yield(Future<int>([=]() mutable { int y = L.tonumber(); L.pop(); L.push((lua_Number) y + 1); |