diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-25 16:18:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-25 16:18:49 -0300 |
| commit | 78c507b7b83a85c106b619ce2050725a80627a25 (patch) | |
| tree | a2d2f27f3a98bca084f7430c085fe30763d6108a /ldblib.c | |
| parent | 69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a (diff) | |
| download | lua-78c507b7b83a85c106b619ce2050725a80627a25.tar.gz lua-78c507b7b83a85c106b619ce2050725a80627a25.tar.bz2 lua-78c507b7b83a85c106b619ce2050725a80627a25.zip | |
`lua_upcall' -> `lua_call'
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.59 2002/06/18 17:10:43 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.60 2002/06/18 17:42:52 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_upcall(L, 1, 0); | 120 | lua_call(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 */ |
