diff options
Diffstat (limited to '')
| -rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 2.55 2006/06/07 12:37:17 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.56 2006/07/11 15:53:29 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 | */ |
| @@ -185,7 +185,7 @@ LUA_API void lua_replace (lua_State *L, int idx) { | |||
| 185 | api_checkvalidindex(L, o); | 185 | api_checkvalidindex(L, o); |
| 186 | if (idx == LUA_ENVIRONINDEX) { | 186 | if (idx == LUA_ENVIRONINDEX) { |
| 187 | Closure *func = curr_func(L); | 187 | Closure *func = curr_func(L); |
| 188 | api_check(L, ttistable(L->top - 1)); | 188 | api_check(L, ttistable(L->top - 1)); |
| 189 | func->c.env = hvalue(L->top - 1); | 189 | func->c.env = hvalue(L->top - 1); |
| 190 | luaC_barrier(L, func, L->top - 1); | 190 | luaC_barrier(L, func, L->top - 1); |
| 191 | } | 191 | } |
| @@ -747,7 +747,7 @@ LUA_API int lua_setfenv (lua_State *L, int idx) { | |||
| 747 | 747 | ||
| 748 | #define checkresults(L,na,nr) \ | 748 | #define checkresults(L,na,nr) \ |
| 749 | api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na))) | 749 | api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na))) |
| 750 | 750 | ||
| 751 | 751 | ||
| 752 | LUA_API void lua_call (lua_State *L, int nargs, int nresults) { | 752 | LUA_API void lua_call (lua_State *L, int nargs, int nresults) { |
| 753 | StkId func; | 753 | StkId func; |
