aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-02 13:13:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-02 13:13:05 -0200
commit426d3e43bdec4b1ab2b0aed1844396c27f64872f (patch)
tree659b73e1e9720fb85c66a481b476c96671eef734 /lvm.c
parent8823f371a2a63f634121a0c16cb1d02e5ce9f5c5 (diff)
downloadlua-426d3e43bdec4b1ab2b0aed1844396c27f64872f.tar.gz
lua-426d3e43bdec4b1ab2b0aed1844396c27f64872f.tar.bz2
lua-426d3e43bdec4b1ab2b0aed1844396c27f64872f.zip
lock/unlock may use L + better structure for internal debug stuff
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index 86ce5792..9a9dc12a 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.162 2001/02/01 16:03:38 roberto Exp roberto $ 2** $Id: lvm.c,v 1.163 2001/02/01 17:39:55 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -159,7 +159,7 @@ void luaV_settable (lua_State *L, StkId t, StkId key, StkId top) {
159 } 159 }
160 else { /* try a `settable' tag method */ 160 else { /* try a `settable' tag method */
161 Closure *tm = luaT_gettmbyObj(G(L), t, TM_SETTABLE); 161 Closure *tm = luaT_gettmbyObj(G(L), t, TM_SETTABLE);
162 L->top = top; 162 lua_assert(L->top == top);
163 if (tm == NULL) /* no tag method? */ 163 if (tm == NULL) /* no tag method? */
164 luaG_typeerror(L, t, "index"); 164 luaG_typeerror(L, t, "index");
165 else { 165 else {
@@ -206,7 +206,7 @@ void luaV_setglobal (lua_State *L, TString *s, StkId top) {
206 setobj(oldvalue, top-1); /* raw set */ 206 setobj(oldvalue, top-1); /* raw set */
207 } 207 }
208 else { /* call tag method */ 208 else { /* call tag method */
209 L->top = top; 209 lua_assert(L->top == top);
210 luaD_checkstack(L, 3); 210 luaD_checkstack(L, 3);
211 setobj(top+2, top-1); /* new value */ 211 setobj(top+2, top-1); /* new value */
212 setobj(top+1, oldvalue); /* old value */ 212 setobj(top+1, oldvalue); /* old value */