Lines Matching refs:level
839 static UpVal*luaF_findupval(lua_State*L,StkId level){
844 while(*pp!=NULL&&(p=ngcotouv(*pp))->v>=level){
845 if(p->v==level){
855 uv->v=level;
873 static void luaF_close(lua_State*L,StkId level){
876 while(L->openupval!=NULL&&(uv=ngcotouv(L->openupval))->v>=level){
2410 static int lua_getstack(lua_State*L,int level,lua_Debug*ar){
2413 for(ci=L->ci;level>0&&ci>L->base_ci;ci--){
2414 level--;
2416 level-=ci->tailcalls;
2418 if(level==0&&ci>L->base_ci){
2422 else if(level<0){
3785 static void markupval(FuncState*fs,int level){
3787 while(bl&&bl->nactvar>level)bl=bl->previous;
5895 static void luaL_where(lua_State*L,int level){
5897 if(lua_getstack(L,level,&ar)){
6247 int level=luaL_optint(L,2,1);
6249 if(lua_isstring(L,1)&&level>0){
6250 luaL_where(L,level);
6271 int level=opt?luaL_optint(L,1,1):luaL_checkint(L,1);
6272 luaL_argcheck(L,level>=0,1,"level must be non-negative");
6273 if(lua_getstack(L,level,&ar)==0)
6278 level);
7081 int level;
7089 if(l<0||l>=ms->level||ms->capture[l].len==(-1))
7094 int level=ms->level;
7095 for(level--;level>=0;level--)
7096 if(ms->capture[level].len==(-1))return level;
7212 int level=ms->level;
7213 if(level>=32)luaL_error(ms->L,"too many captures");
7214 ms->capture[level].init=s;
7215 ms->capture[level].len=what;
7216 ms->level=level+1;
7218 ms->level--;
7337 if(i>=ms->level){
7354 int nlevels=(ms->level==0&&s)?1:ms->level;
7385 ms.level=0;
7419 ms.level=0;
7507 ms.level=0;