diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-07 15:09:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-07 15:09:25 -0300 |
commit | 6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9 (patch) | |
tree | 1f8fd00995288958a32ebd8f97863c5f1cb8f776 /ldblib.c | |
parent | 5e870f86a255988ca85eda795adc31063ec1ac70 (diff) | |
download | lua-6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9.tar.gz lua-6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9.tar.bz2 lua-6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9.zip |
better way to link callinfo's and stack
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.33 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.34 2001/03/06 20:09:38 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 | */ |
@@ -121,7 +121,7 @@ static void hookf (lua_State *L, void *key) { | |||
121 | lua_pushuserdata(L, key); | 121 | lua_pushuserdata(L, key); |
122 | lua_gettable(L, -2); | 122 | lua_gettable(L, -2); |
123 | if (lua_isfunction(L, -1)) { | 123 | if (lua_isfunction(L, -1)) { |
124 | lua_pushvalue(L, 1); | 124 | lua_pushvalue(L, -3); /* original argument (below table and function) */ |
125 | lua_rawcall(L, 1, 0); | 125 | lua_rawcall(L, 1, 0); |
126 | } | 126 | } |
127 | else | 127 | else |