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

Function lua_yield

third-party/lua-5.1.5/src/ldo.c:444–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442
443
444LUA_API int lua_yield (lua_State *L, int nresults) {
445 luai_userstateyield(L, nresults);
446 lua_lock(L);
447 if (L->nCcalls > L->baseCcalls)
448 luaG_runerror(L, "attempt to yield across metamethod/C-call boundary");
449 L->base = L->top - nresults; /* protect stack slots below */
450 L->status = LUA_YIELD;
451 lua_unlock(L);
452 return -1;
453}
454
455
456int luaD_pcall (lua_State *L, Pfunc func, void *u,

Callers 5

luaB_yieldFunction · 0.85
luaB_yieldFunction · 0.85
luaB_yieldFunction · 0.85
luaB_yieldFunction · 0.85
luaB_yieldFunction · 0.85

Calls 1

luaG_runerrorFunction · 0.70

Tested by

no test coverage detected