| 115 | |
| 116 | |
| 117 | static const char *findvararg (CallInfo *ci, int n, StkId *pos) { |
| 118 | int nparams = clLvalue(ci->func)->p->numparams; |
| 119 | if (n >= ci->u.l.base - ci->func - nparams) |
| 120 | return NULL; /* no such vararg */ |
| 121 | else { |
| 122 | *pos = ci->func + nparams + n; |
| 123 | return "(*vararg)"; /* generic name for any vararg */ |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | |
| 128 | static const char *findlocal (lua_State *L, CallInfo *ci, int n, |