MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaB_cocreate

Function luaB_cocreate

third-party/lua-5.2.4/src/lcorolib.c:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82static 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
92static int luaB_cowrap (lua_State *L) {

Callers 1

luaB_cowrapFunction · 0.70

Calls 4

luaL_checktypeFunction · 0.70
lua_newthreadFunction · 0.70
lua_pushvalueFunction · 0.70
lua_xmoveFunction · 0.70

Tested by

no test coverage detected