diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-06 17:16:56 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-06 17:16:56 -0200 |
| commit | 51280ef2ad87f3fcc657fdc0f52799432d2bc340 (patch) | |
| tree | 698301a27b7d49460bf0f2daa860b0652553acaa /ldebug.c | |
| parent | fc3eaa2559f2b9b929892c4a798809f3aa93effe (diff) | |
| download | lua-51280ef2ad87f3fcc657fdc0f52799432d2bc340.tar.gz lua-51280ef2ad87f3fcc657fdc0f52799432d2bc340.tar.bz2 lua-51280ef2ad87f3fcc657fdc0f52799432d2bc340.zip | |
call hooks for Lua functions called by 'luaV_execute'
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 | ||
