| 94 | |
| 95 | |
| 96 | static int luaB_cocreate (lua_State *L) { |
| 97 | lua_State *NL; |
| 98 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 99 | NL = lua_newthread(L); |
| 100 | lua_pushvalue(L, 1); /* move function to top */ |
| 101 | lua_xmove(L, NL, 1); /* move function from L to NL */ |
| 102 | return 1; |
| 103 | } |
| 104 | |
| 105 | |
| 106 | static int luaB_cowrap (lua_State *L) { |
no test coverage detected