| 78 | |
| 79 | |
| 80 | static int luaB_cocreate (lua_State *L) { |
| 81 | lua_State *NL; |
| 82 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 83 | NL = lua_newthread(L); |
| 84 | lua_pushvalue(L, 1); /* move function to top */ |
| 85 | lua_xmove(L, NL, 1); /* move function from L to NL */ |
| 86 | return 1; |
| 87 | } |
| 88 | |
| 89 | |
| 90 | static int luaB_cowrap (lua_State *L) { |
no test coverage detected