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

Function findvararg

third-party/lua-5.4.6/src/ldebug.c:187–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186
187static const char *findvararg (CallInfo *ci, int n, StkId *pos) {
188 if (clLvalue(s2v(ci->func.p))->p->is_vararg) {
189 int nextra = ci->u.l.nextraargs;
190 if (n >= -nextra) { /* 'n' is negative */
191 *pos = ci->func.p - nextra - (n + 1);
192 return "(vararg)"; /* generic name for any vararg */
193 }
194 }
195 return NULL; /* no such vararg */
196}
197
198
199const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos) {

Callers 1

luaG_findlocalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected