MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaD_callnoyield

Function luaD_callnoyield

extlibs/lua/src/ldo.c:522–528  ·  view source on GitHub ↗

** Similar to 'luaD_call', but does not allow yields during the call. ** If there is a stack overflow, freeing all CI structures will ** force the subsequent call to invoke 'luaE_extendCI', which then ** will raise any errors. */

Source from the content-addressed store, hash-verified

520** will raise any errors.
521*/
522void luaD_callnoyield (lua_State *L, StkId func, int nResults) {
523 incXCcalls(L);
524 if (getCcalls(L) <= CSTACKERR) /* possible stack overflow? */
525 luaE_freeCI(L);
526 luaD_call(L, func, nResults);
527 decXCcalls(L);
528}
529
530
531/*

Callers 7

luaT_callTMFunction · 0.85
luaT_callTMresFunction · 0.85
luaG_errormsgFunction · 0.85
callcloseFunction · 0.85
lua_callkFunction · 0.85
f_callFunction · 0.85
dothecallFunction · 0.85

Calls 2

luaE_freeCIFunction · 0.85
luaD_callFunction · 0.85

Tested by

no test coverage detected