MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaD_call

Function luaD_call

src/Chain/libraries/glua/ldo.cpp:523–529  ·  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

521** function position.
522*/
523void luaD_call(lua_State *L, StkId func, int nResults) {
524 if (++L->nCcalls >= LUAI_MAXCCALLS)
525 stackerror(L);
526 if (!luaD_precall(L, func, nResults)) /* is a Lua function? */
527 luaV_execute(L); /* call it */
528 L->nCcalls--;
529}
530
531
532/*

Callers 5

luaT_callTMFunction · 0.85
luaD_callnoyieldFunction · 0.85
vmcaseFunction · 0.85
lua_callkFunction · 0.85
lua_pcallkFunction · 0.85

Calls 2

stackerrorFunction · 0.85
luaV_executeFunction · 0.85

Tested by

no test coverage detected