diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-05 12:35:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-05 12:35:15 -0300 |
commit | 71eb8240366f1320b590c37949b5a1ea5d8227d6 (patch) | |
tree | 2ded81b34885e4c486bd511286c46ffa1e37b4c2 /lapi.c | |
parent | 7b6c3b463e835f4accd344e1de44a92e1c5dde62 (diff) | |
download | lua-71eb8240366f1320b590c37949b5a1ea5d8227d6.tar.gz lua-71eb8240366f1320b590c37949b5a1ea5d8227d6.tar.bz2 lua-71eb8240366f1320b590c37949b5a1ea5d8227d6.zip |
details
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.36 2005/03/22 16:04:29 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.37 2005/04/04 18:12:51 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 | */ |
@@ -88,7 +88,7 @@ static Table *getcurrenv (lua_State *L) { | |||
88 | 88 | ||
89 | void luaA_pushobject (lua_State *L, const TValue *o) { | 89 | void luaA_pushobject (lua_State *L, const TValue *o) { |
90 | setobj2s(L, L->top, o); | 90 | setobj2s(L, L->top, o); |
91 | incr_top(L); | 91 | api_incr_top(L); |
92 | } | 92 | } |
93 | 93 | ||
94 | 94 | ||
@@ -822,9 +822,9 @@ static void f_Ccall (lua_State *L, void *ud) { | |||
822 | cl = luaF_newCclosure(L, 0, getcurrenv(L)); | 822 | cl = luaF_newCclosure(L, 0, getcurrenv(L)); |
823 | cl->c.f = c->func; | 823 | cl->c.f = c->func; |
824 | setclvalue(L, L->top, cl); /* push function */ | 824 | setclvalue(L, L->top, cl); /* push function */ |
825 | incr_top(L); | 825 | api_incr_top(L); |
826 | setpvalue(L->top, c->ud); /* push only argument */ | 826 | setpvalue(L->top, c->ud); /* push only argument */ |
827 | incr_top(L); | 827 | api_incr_top(L); |
828 | luaD_call(L, L->top - 2, 0); | 828 | luaD_call(L, L->top - 2, 0); |
829 | } | 829 | } |
830 | 830 | ||