| 11438 | |
| 11439 | |
| 11440 | static int luaB_cocreate (lua_State *L) { |
| 11441 | lua_State *NL = lua_newthread(L); |
| 11442 | luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1, |
| 11443 | "Lua function expected"); |
| 11444 | lua_pushvalue(L, 1); /* move function to top */ |
| 11445 | lua_xmove(L, NL, 1); /* move function from L to NL */ |
| 11446 | return 1; |
| 11447 | } |
| 11448 | |
| 11449 | |
| 11450 | static int luaB_cowrap (lua_State *L) { |
no test coverage detected