MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / findvararg

Function findvararg

third-party/lua-5.3.5/src/ldebug.c:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134static const char *findvararg (CallInfo *ci, int n, StkId *pos) {
135 int nparams = clLvalue(ci->func)->p->numparams;
136 if (n >= cast_int(ci->u.l.base - ci->func) - nparams)
137 return NULL; /* no such vararg */
138 else {
139 *pos = ci->func + nparams + n;
140 return "(*vararg)"; /* generic name for any vararg */
141 }
142}
143
144
145static const char *findlocal (lua_State *L, CallInfo *ci, int n,

Callers 1

findlocalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected