diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-03 17:13:35 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-03 17:13:35 +0100 |
commit | d8580e14fec64dd5bf3dd492a4811b290cbe4aec (patch) | |
tree | 8dcd3117f7427671e34509badd4c08957d8f0914 /src/compat.hpp | |
parent | 307fd830eb168005a3ba3d557343284814757eff (diff) | |
download | lanes-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.hpp | 10 |
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 | ||
52 | enum 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 |