diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-12-30 15:26:49 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-12-30 15:26:49 -0200 |
commit | 59f8e6fb7710e46539fb9bf63131b45012bf86ef (patch) | |
tree | 2077a5d755afd0346994a53918c881cca8357668 /lapi.c | |
parent | 05d89b5c05bdf3be8f6fd3c6d195672f1e10d13e (diff) | |
download | lua-59f8e6fb7710e46539fb9bf63131b45012bf86ef.tar.gz lua-59f8e6fb7710e46539fb9bf63131b45012bf86ef.tar.bz2 lua-59f8e6fb7710e46539fb9bf63131b45012bf86ef.zip |
details ("settable")
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 | ||
182 | void lua_settable (void) | 182 | void 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 | ||
189 | void lua_rawsettable (void) | 188 | void 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 | ||