aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
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 d4d06777..b1a95b79 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.232 2003/02/27 12:33:07 roberto Exp roberto $ 2** $Id: lapi.c,v 1.233 2003/03/14 18:59:21 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*/
@@ -681,7 +681,7 @@ LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc) {
681 func = (errfunc == 0) ? 0 : savestack(L, luaA_index(L, errfunc)); 681 func = (errfunc == 0) ? 0 : savestack(L, luaA_index(L, errfunc));
682 c.func = L->top - (nargs+1); /* function to be called */ 682 c.func = L->top - (nargs+1); /* function to be called */
683 c.nresults = nresults; 683 c.nresults = nresults;
684 status = luaD_pcall(L, &f_call, &c, savestack(L, c.func), func); 684 status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func);
685 lua_unlock(L); 685 lua_unlock(L);
686 return status; 686 return status;
687} 687}
@@ -715,7 +715,7 @@ LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
715 lua_lock(L); 715 lua_lock(L);
716 c.func = func; 716 c.func = func;
717 c.ud = ud; 717 c.ud = ud;
718 status = luaD_pcall(L, &f_Ccall, &c, savestack(L, L->top), 0); 718 status = luaD_pcall(L, f_Ccall, &c, savestack(L, L->top), 0);
719 lua_unlock(L); 719 lua_unlock(L);
720 return status; 720 return status;
721} 721}