lua_upcall' -> lua_call'
This commit is contained in:
4
ldblib.c
4
ldblib.c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user