From 93a5649d40a3a8b8e5b329305f8cda868d98615e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 6 Nov 2000 11:19:08 -0200 Subject: hooks may call `error' to break a chunk. --- ldblib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldblib.c b/ldblib.c index a6148ae6..6e8d6b59 100644 --- a/ldblib.c +++ b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.26 2000/10/26 19:04:22 roberto Exp roberto $ +** $Id: ldblib.c,v 1.27 2000/10/27 16:15:53 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -122,7 +122,7 @@ static void hookf (lua_State *L, void *key) { lua_gettable(L, -2); if (lua_isfunction(L, -1)) { lua_pushvalue(L, 1); - lua_call(L, 1, 0); + lua_rawcall(L, 1, 0); } else lua_pop(L, 1); /* pop result from gettable */ -- cgit v1.2.3-55-g6feb