first version of Lua "stackless"

This commit is contained in:
Roberto Ierusalimschy
2001-12-18 18:52:30 -02:00
parent 101cee3032
commit e04f7ed450
8 changed files with 49 additions and 50 deletions

3
lgc.c
View File

@@ -363,8 +363,7 @@ static void do1gcTM (lua_State *L, Udata *udata) {
setobj(top, tm);
setuvalue(top+1, udata);
L->top += 2;
luaD_call(L, top);
L->top = top; /* restore top */
luaD_call(L, top, 0);
}
}