MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_yield

Function lua_yield

Source/Misc/lua/src/lua.c:5589–5598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5587
5588
5589LUA_API int lua_yield (lua_State *L, int nresults) {
5590luai_userstateyield(L, nresults);
5591lua_lock(L);
5592if (L->nCcalls > L->baseCcalls)
5593luaG_runerror(L, "attempt to yield across metamethod/C-call boundary");
5594L->base = L->top - nresults; /* protect stack slots below */
5595L->status = LUA_YIELD;
5596lua_unlock(L);
5597return -1;
5598}
5599
5600
5601int luaD_pcall (lua_State *L, Pfunc func, void *u,

Callers 2

entry_pointMethod · 0.85
luaB_yieldFunction · 0.85

Calls 1

luaG_runerrorFunction · 0.85

Tested by

no test coverage detected