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

Function luaB_coresume

third-party/lua-5.3.5/src/lcorolib.c:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57static int luaB_coresume (lua_State *L) {
58 lua_State *co = getco(L);
59 int r;
60 r = auxresume(L, co, lua_gettop(L) - 1);
61 if (r < 0) {
62 lua_pushboolean(L, 0);
63 lua_insert(L, -2);
64 return 2; /* return false + error message */
65 }
66 else {
67 lua_pushboolean(L, 1);
68 lua_insert(L, -(r + 1));
69 return r + 1; /* return true + 'resume' returns */
70 }
71}
72
73
74static int luaB_auxwrap (lua_State *L) {

Callers

nothing calls this directly

Calls 5

getcoFunction · 0.70
auxresumeFunction · 0.70
lua_gettopFunction · 0.70
lua_pushbooleanFunction · 0.70
lua_insertFunction · 0.50

Tested by

no test coverage detected