aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
commit88607acc2c41c2bace172b78012d2ce9abf05766 (patch)
tree6283e23fe6acce3fb68e0abeb2410e7cdf816f90 /lapi.c
parent6de93e29321bedb4f9ebd14bdcc04b942b0aad57 (diff)
downloadlua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.gz
lua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.bz2
lua-88607acc2c41c2bace172b78012d2ce9abf05766.zip
details
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index b0f3e52b..84b3fe72 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.201 2002/06/20 20:41:46 roberto Exp roberto $ 2** $Id: lapi.c,v 1.202 2002/06/24 13:08:45 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*/
@@ -426,7 +426,7 @@ LUA_API void lua_gettable (lua_State *L, int index) {
426 const TObject *v; 426 const TObject *v;
427 lua_lock(L); 427 lua_lock(L);
428 t = luaA_index(L, index); 428 t = luaA_index(L, index);
429 v = luaV_gettable(L, t, L->top-1); 429 v = luaV_gettable(L, t, L->top-1, 0);
430 setobj(L->top - 1, v); 430 setobj(L->top - 1, v);
431 lua_unlock(L); 431 lua_unlock(L);
432} 432}
@@ -597,7 +597,7 @@ LUA_API int lua_setglobals (lua_State *L, int level) {
597** `load' and `call' functions (run Lua code) 597** `load' and `call' functions (run Lua code)
598*/ 598*/
599 599
600LUA_API void lua_upcall (lua_State *L, int nargs, int nresults) { 600LUA_API void lua_call (lua_State *L, int nargs, int nresults) {
601 StkId func; 601 StkId func;
602 lua_lock(L); 602 lua_lock(L);
603 api_checknelems(L, nargs+1); 603 api_checknelems(L, nargs+1);