From cd5da6097812baf125c2dc4f1d12e1a3f4985464 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 5 Aug 2013 11:53:57 -0700 Subject: Greatly simplifying the LuaYield mechanism so to avoid double-recursive calls in resume(). --- tests/test-Lua.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test-Lua.cc') 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([=]() mutable { + return L.yield(Future([=]() mutable { int y = L.tonumber(); L.pop(); L.push((lua_Number) y + 1); -- cgit v1.2.3