1 const char* lua_sysrc_script
=
2 "loopwrapper = function(fn, ...)\n"
3 " local routine = coroutine.create(fn);\n"
4 " local resume = function(...)\n"
5 " if coroutine.status(routine) ~= \"dead\" then\n"
7 " x, y = coroutine.resume(routine, ...);\n"
13 " local yield = function()\n"
14 " return coroutine.yield(routine);\n"
16 " resume(yield, ...);\n"
20 "loadfile=loadfile2;\n"
22 "memory2=memory2();\n"
23 "callback=callback();\n";