** 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. */
| 493 | ** function position. |
| 494 | */ |
| 495 | void 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 | /* |
no test coverage detected