MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / findvararg

Function findvararg

3rd/lua-5.4.3/src/ldebug.c:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaG_findlocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected