MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaT_getvarargs

Function luaT_getvarargs

libs/lua/ltm.c:258–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258void luaT_getvarargs (lua_State *L, CallInfo *ci, StkId where, int wanted) {
259 int i;
260 int nextra = ci->u.l.nextraargs;
261 if (wanted < 0) {
262 wanted = nextra; /* get all extra arguments available */
263 checkstackGCp(L, nextra, where); /* ensure stack space */
264 L->top.p = where + nextra; /* next instruction will need top */
265 }
266 for (i = 0; i < wanted && i < nextra; i++)
267 setobjs2s(L, where + i, ci->func.p - nextra + i);
268 for (; i < wanted; i++) /* complete required results with nil */
269 setnilvalue(s2v(where + i));
270}
271

Callers 1

luaV_executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected