aboutsummaryrefslogtreecommitdiff
path: root/ldebug.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 /ldebug.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 'ldebug.h')
-rw-r--r--ldebug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldebug.h b/ldebug.h
index 2c3074c6..2bfce3cb 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -58,6 +58,7 @@ LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
58 TString *src, int line); 58 TString *src, int line);
59LUAI_FUNC l_noret luaG_errormsg (lua_State *L); 59LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
60LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc); 60LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc);
61LUAI_FUNC int luaG_tracecall (lua_State *L);
61 62
62 63
63#endif 64#endif