small optimizations
This commit is contained in:
10
ldo.c
10
ldo.c
@@ -68,16 +68,6 @@ void luaD_stackerror (lua_State *L) {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** adjust top to new value; assume that new top is valid
|
||||
*/
|
||||
void luaD_adjusttop (lua_State *L, StkId newtop) {
|
||||
while (L->top < newtop)
|
||||
setnilvalue(L->top++);
|
||||
L->top = newtop; /* `newtop' could be lower than `top' */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Open a hole inside the stack at `pos'
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user