diff options
Diffstat (limited to 'ldebug.c')
| -rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldebug.c,v 2.151 2017/12/28 15:42:57 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.152 2018/01/10 12:02:35 roberto Exp roberto $ |
| 3 | ** Debug Interface | 3 | ** Debug Interface |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -143,7 +143,7 @@ LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { | |||
| 143 | L->basehookcount = count; | 143 | L->basehookcount = count; |
| 144 | resethookcount(L); | 144 | resethookcount(L); |
| 145 | L->hookmask = cast_byte(mask); | 145 | L->hookmask = cast_byte(mask); |
| 146 | if (mask & (LUA_MASKLINE | LUA_MASKCOUNT)) | 146 | if (mask) |
| 147 | settraps(L->ci); /* to trace inside 'luaV_execute' */ | 147 | settraps(L->ci); /* to trace inside 'luaV_execute' */ |
| 148 | } | 148 | } |
| 149 | 149 | ||
