diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.55 2002/06/05 17:24:04 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.56 2002/06/06 12:40:36 roberto Exp roberto $ |
3 | ** Interface from Lua to its debug API | 3 | ** Interface from Lua to its debug API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -117,7 +117,7 @@ static void hookf (lua_State *L, void *key) { | |||
117 | lua_rawget(L, LUA_REGISTRYINDEX); | 117 | lua_rawget(L, LUA_REGISTRYINDEX); |
118 | if (lua_isfunction(L, -1)) { | 118 | if (lua_isfunction(L, -1)) { |
119 | lua_pushvalue(L, -2); /* original argument (below function) */ | 119 | lua_pushvalue(L, -2); /* original argument (below function) */ |
120 | lua_rawcall(L, 1, 0); | 120 | lua_upcall(L, 1, 0); |
121 | } | 121 | } |
122 | else | 122 | else |
123 | lua_pop(L, 1); /* pop result from gettable */ | 123 | lua_pop(L, 1); /* pop result from gettable */ |