MCPcopy Create free account
hub / github.com/TASEmulators/fceux / lua_yield

Function lua_yield

src/lua/src/ldo.c:443–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

emu_frameadvanceFunction · 0.85
luaB_yieldFunction · 0.85

Calls 1

luaG_runerrorFunction · 0.85

Tested by

no test coverage detected