diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-02-05 16:24:35 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-02-05 16:24:35 +0100 |
commit | 887fc613dd943d1221d5a2a3b96cee37c0d81248 (patch) | |
tree | 7151029f79e115d8822291644e11244def30079d /src/compat.hpp | |
parent | 05e4cce366cccf92ad88f80695efa548fae187de (diff) | |
download | lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.tar.gz lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.tar.bz2 lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.zip |
All enums are [[nodiscard]]
Diffstat (limited to 'src/compat.hpp')
-rw-r--r-- | src/compat.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compat.hpp b/src/compat.hpp index 0c7c5bb..d864ae9 100644 --- a/src/compat.hpp +++ b/src/compat.hpp | |||
@@ -34,7 +34,7 @@ | |||
34 | // ################################################################################################# | 34 | // ################################################################################################# |
35 | 35 | ||
36 | // a strong-typed wrapper over lua types to see them easier in a debugger | 36 | // a strong-typed wrapper over lua types to see them easier in a debugger |
37 | enum class LuaType | 37 | enum class [[nodiscard]] LuaType |
38 | { | 38 | { |
39 | NONE = LUA_TNONE, | 39 | NONE = LUA_TNONE, |
40 | NIL = LUA_TNIL, | 40 | NIL = LUA_TNIL, |
@@ -49,7 +49,7 @@ enum class LuaType | |||
49 | CDATA = 10 // LuaJIT CDATA | 49 | CDATA = 10 // LuaJIT CDATA |
50 | }; | 50 | }; |
51 | 51 | ||
52 | enum class LuaHookMask | 52 | enum class [[nodiscard]] LuaHookMask |
53 | { | 53 | { |
54 | None = 0, | 54 | None = 0, |
55 | Call = LUA_MASKCALL, | 55 | Call = LUA_MASKCALL, |
@@ -113,7 +113,7 @@ inline int luaL_optint(lua_State* L_, StackIndex n_, lua_Integer d_) | |||
113 | // ################################################################################################# | 113 | // ################################################################################################# |
114 | 114 | ||
115 | // a strong-typed wrapper over lua error codes to see them easier in a debugger | 115 | // a strong-typed wrapper over lua error codes to see them easier in a debugger |
116 | enum class LuaError | 116 | enum class [[nodiscard]] LuaError |
117 | { | 117 | { |
118 | OK = LUA_OK, | 118 | OK = LUA_OK, |
119 | YIELD = LUA_YIELD, | 119 | YIELD = LUA_YIELD, |