aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-12-30 15:26:49 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-12-30 15:26:49 -0200
commit59f8e6fb7710e46539fb9bf63131b45012bf86ef (patch)
tree2077a5d755afd0346994a53918c881cca8357668 /lapi.c
parent05d89b5c05bdf3be8f6fd3c6d195672f1e10d13e (diff)
downloadlua-59f8e6fb7710e46539fb9bf63131b45012bf86ef.tar.gz
lua-59f8e6fb7710e46539fb9bf63131b45012bf86ef.tar.bz2
lua-59f8e6fb7710e46539fb9bf63131b45012bf86ef.zip
details ("settable")
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lapi.c b/lapi.c
index 65cd28b4..d5c16369 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.28 1998/09/07 18:59:59 roberto Exp roberto $ 2** $Id: lapi.c,v 1.29 1998/12/03 15:45:15 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -179,17 +179,15 @@ lua_Object lua_rawgettable (void)
179} 179}
180 180
181 181
182void lua_settable (void) 182void lua_settable (void) {
183{
184 checkCparams(3); 183 checkCparams(3);
185 luaV_settable(L->stack.top-3, 1); 184 luaV_settable(L->stack.top-3, 0);
186} 185}
187 186
188 187
189void lua_rawsettable (void) 188void lua_rawsettable (void) {
190{
191 checkCparams(3); 189 checkCparams(3);
192 luaV_settable(L->stack.top-3, 0); 190 luaV_rawsettable(L->stack.top-3);
193} 191}
194 192
195 193