aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-07-25 16:50:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-07-25 16:50:44 -0300
commit1b3f507f620d996ffb69da7476a19251acfb89ca (patch)
tree71f5a6482d4a33fea53678b411d4837c6450be44 /lstate.h
parent6b51133a988587f34ee9581d799ea9913581afd3 (diff)
downloadlua-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 40ff89aa..007704c8 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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 */