** 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. */
| 502 | ** function position. |
| 503 | */ |
| 504 | void luaD_call (lua_State *L, StkId func, int nResults) { |
| 505 | if (++L->nCcalls >= LUAI_MAXCCALLS) |
| 506 | stackerror(L); |
| 507 | if (!luaD_precall(L, func, nResults)) /* is a Lua function? */ |
| 508 | luaV_execute(L); /* call it */ |
| 509 | L->nCcalls--; |
| 510 | } |
| 511 | |
| 512 | |
| 513 | /* |
no test coverage detected