diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-06 11:19:08 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-06 11:19:08 -0200 |
commit | 93a5649d40a3a8b8e5b329305f8cda868d98615e (patch) | |
tree | c194879647917861fd95ed4fe52d2afdc29d66cb | |
parent | df416661cc394fb397341baee368c5894d7e3b1b (diff) | |
download | lua-93a5649d40a3a8b8e5b329305f8cda868d98615e.tar.gz lua-93a5649d40a3a8b8e5b329305f8cda868d98615e.tar.bz2 lua-93a5649d40a3a8b8e5b329305f8cda868d98615e.zip |
hooks may call `error' to break a chunk.
-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.26 2000/10/26 19:04:22 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.27 2000/10/27 16:15:53 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 | */ |
@@ -122,7 +122,7 @@ static void hookf (lua_State *L, void *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, 1); |
125 | lua_call(L, 1, 0); | 125 | lua_rawcall(L, 1, 0); |
126 | } | 126 | } |
127 | else | 127 | else |
128 | lua_pop(L, 1); /* pop result from gettable */ | 128 | lua_pop(L, 1); /* pop result from gettable */ |