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