MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_corunning

Function luaB_corunning

deps/lua/src/lbaselib.c:598–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596
597
598static int luaB_corunning (lua_State *L) {
599 if (lua_pushthread(L))
600 lua_pushnil(L); /* main thread is not a coroutine */
601 return 1;
602}
603
604
605static 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