Home | History | Annotate | Download | only in src

Lines Matching refs:upvalue

71     api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large");
76 return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : NONVALIDVALUE;
210 if (idx < LUA_REGISTRYINDEX) /* function upvalue? */
563 api_check(L, n <= MAXUPVAL, "upvalue index too large");
569 setobj2n(L, &cl->c.upvalue[n], L->top + n);
983 if (f->nupvalues == 1) { /* does it have one upvalue? */
987 /* set global table as 1st upvalue of 'f' (may be LUA_ENV) */
1194 *val = &f->upvalue[n-1];
1251 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index");
1253 return &f->upvals[n - 1]; /* get its upvalue pointer */
1265 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index");
1266 return &f->upvalue[n - 1];