| 582 | |
| 583 | |
| 584 | static int luaB_cocreate (lua_State *L) { |
| 585 | lua_State *NL = lua_newthread(L); |
| 586 | luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1, |
| 587 | "Lua function expected"); |
| 588 | lua_pushvalue(L, 1); /* move function to top */ |
| 589 | lua_xmove(L, NL, 1); /* move function from L to NL */ |
| 590 | return 1; |
| 591 | } |
| 592 | |
| 593 | |
| 594 | static int luaB_cowrap (lua_State *L) { |
no test coverage detected