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