lua_upcall' -> lua_call'

This commit is contained in:
Roberto Ierusalimschy
2002-06-25 16:18:49 -03:00
parent 69906cb56f
commit 78c507b7b8
5 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldblib.c,v 1.59 2002/06/18 17:10:43 roberto Exp roberto $
** $Id: ldblib.c,v 1.60 2002/06/18 17:42:52 roberto Exp roberto $
** Interface from Lua to its debug API
** See Copyright Notice in lua.h
*/
@@ -117,7 +117,7 @@ static void hookf (lua_State *L, void *key) {
lua_rawget(L, LUA_REGISTRYINDEX);
if (lua_isfunction(L, -1)) {
lua_pushvalue(L, -2); /* original argument (below function) */
lua_upcall(L, 1, 0);
lua_call(L, 1, 0);
}
else
lua_pop(L, 1); /* pop result from gettable */