From 51280ef2ad87f3fcc657fdc0f52799432d2bc340 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 6 Feb 2018 17:16:56 -0200 Subject: call hooks for Lua functions called by 'luaV_execute' --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 3ea6367f..93a935a5 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.151 2017/12/28 15:42:57 roberto Exp roberto $ +** $Id: ldebug.c,v 2.152 2018/01/10 12:02:35 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -143,7 +143,7 @@ LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { L->basehookcount = count; resethookcount(L); L->hookmask = cast_byte(mask); - if (mask & (LUA_MASKLINE | LUA_MASKCOUNT)) + if (mask) settraps(L->ci); /* to trace inside 'luaV_execute' */ } -- cgit v1.2.3-55-g6feb