diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-07-25 16:50:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-07-25 16:50:44 -0300 |
commit | 1b3f507f620d996ffb69da7476a19251acfb89ca (patch) | |
tree | 71f5a6482d4a33fea53678b411d4837c6450be44 /lstate.h | |
parent | 6b51133a988587f34ee9581d799ea9913581afd3 (diff) | |
download | lua-1b3f507f620d996ffb69da7476a19251acfb89ca.tar.gz lua-1b3f507f620d996ffb69da7476a19251acfb89ca.tar.bz2 lua-1b3f507f620d996ffb69da7476a19251acfb89ca.zip |
Bug: Call hook may be called twice when count hook yields
Took the opportunity and moved the code that controls call hooks
in 'luaV_execute' into a function.
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -181,7 +181,7 @@ struct CallInfo { | |||
181 | union { | 181 | union { |
182 | struct { /* only for Lua functions */ | 182 | struct { /* only for Lua functions */ |
183 | const Instruction *savedpc; | 183 | const Instruction *savedpc; |
184 | volatile l_signalT trap; | 184 | volatile l_signalT trap; /* function is tracing lines/counts */ |
185 | int nextraargs; /* # of extra arguments in vararg functions */ | 185 | int nextraargs; /* # of extra arguments in vararg functions */ |
186 | } l; | 186 | } l; |
187 | struct { /* only for C functions */ | 187 | struct { /* only for C functions */ |