aboutsummaryrefslogtreecommitdiff
path: root/src/compat.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-12-03 17:13:35 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-12-03 17:13:35 +0100
commitd8580e14fec64dd5bf3dd492a4811b290cbe4aec (patch)
tree8dcd3117f7427671e34509badd4c08957d8f0914 /src/compat.hpp
parent307fd830eb168005a3ba3d557343284814757eff (diff)
downloadlanes-d8580e14fec64dd5bf3dd492a4811b290cbe4aec.tar.gz
lanes-d8580e14fec64dd5bf3dd492a4811b290cbe4aec.tar.bz2
lanes-d8580e14fec64dd5bf3dd492a4811b290cbe4aec.zip
Internal rework of an enum bad practice usage
Diffstat (limited to 'src/compat.hpp')
-rw-r--r--src/compat.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compat.hpp b/src/compat.hpp
index 81f1665..80bc391 100644
--- a/src/compat.hpp
+++ b/src/compat.hpp
@@ -49,6 +49,16 @@ enum class LuaType
49 CDATA = 10 // LuaJIT CDATA 49 CDATA = 10 // LuaJIT CDATA
50}; 50};
51 51
52enum class LuaHookMask
53{
54 None = 0,
55 Call = LUA_MASKCALL,
56 Ret = LUA_MASKRET,
57 Line = LUA_MASKLINE,
58 Count = LUA_MASKCOUNT,
59 All = LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT
60};
61
52// ################################################################################################# 62// #################################################################################################
53 63
54// add some Lua 5.3-style API when building for Lua 5.1 64// add some Lua 5.3-style API when building for Lua 5.1