| 87 | |
| 88 | |
| 89 | static int luaB_cocreate (lua_State *L) { |
| 90 | lua_State *NL; |
| 91 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 92 | NL = lua_newthread(L); |
| 93 | lua_pushvalue(L, 1); /* move function to top */ |
| 94 | lua_xmove(L, NL, 1); /* move function from L to NL */ |
| 95 | return 1; |
| 96 | } |
| 97 | |
| 98 | |
| 99 | static int luaB_cowrap (lua_State *L) { |
no test coverage detected