MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / luaD_call

Function luaD_call

source/extern/lua/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.85
luaT_callTMFunction · 0.85
luaD_callnoyieldFunction · 0.85
lua_callkFunction · 0.85
lua_pcallkFunction · 0.85

Calls 3

stackerrorFunction · 0.85
luaD_precallFunction · 0.85
luaV_executeFunction · 0.85

Tested by

no test coverage detected