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

Function luaD_call

third-party/lua-5.3.5/src/ldo.c:495–501  ·  view source on GitHub ↗

** Call a function (C or Lua). The function to be called is at *func. ** The arguments are on the stack, right after the function. ** When returns, all the results are on the stack, starting at the original ** function position. */

Source from the content-addressed store, hash-verified

493** function position.
494*/
495void luaD_call (lua_State *L, StkId func, int nResults) {
496 if (++L->nCcalls >= LUAI_MAXCCALLS)
497 stackerror(L);
498 if (!luaD_precall(L, func, nResults)) /* is a Lua function? */
499 luaV_execute(L); /* call it */
500 L->nCcalls--;
501}
502
503
504/*

Callers 5

luaV_executeFunction · 0.70
luaT_callTMFunction · 0.70
luaD_callnoyieldFunction · 0.70
lua_callkFunction · 0.70
lua_pcallkFunction · 0.70

Calls 3

stackerrorFunction · 0.85
luaD_precallFunction · 0.70
luaV_executeFunction · 0.70

Tested by

no test coverage detected