MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaB_coresume

Function luaB_coresume

lib/lua/src/lcorolib.c:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

getcoFunction · 0.85
auxresumeFunction · 0.85
lua_gettopFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected