MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaB_corunning

Function luaB_corunning

lua/lbaselib.c:606–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604
605
606static int luaB_corunning (lua_State *L) {
607 if (lua_pushthread(L))
608 lua_pushnil(L); /* main thread is not a coroutine */
609 return 1;
610}
611
612
613static const luaL_Reg co_funcs[] = {

Callers

nothing calls this directly

Calls 2

lua_pushthreadFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected