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/tools.hpp | |
parent | 05e4cce366cccf92ad88f80695efa548fae187de (diff) | |
download | lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.tar.gz lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.tar.bz2 lanes-887fc613dd943d1221d5a2a3b96cee37c0d81248.zip |
All enums are [[nodiscard]]
Diffstat (limited to 'src/tools.hpp')
-rw-r--r-- | src/tools.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools.hpp b/src/tools.hpp index 9a62cda..2b8c5b5 100644 --- a/src/tools.hpp +++ b/src/tools.hpp | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | class Universe; | 5 | class Universe; |
6 | 6 | ||
7 | enum class LookupMode | 7 | enum class [[nodiscard]] LookupMode |
8 | { | 8 | { |
9 | LaneBody, // send the lane body directly from the source to the destination lane. keep this one first so that it's the value we get when we default-construct | 9 | LaneBody, // send the lane body directly from the source to the destination lane. keep this one first so that it's the value we get when we default-construct |
10 | ToKeeper, // send a function from a lane to a keeper state | 10 | ToKeeper, // send a function from a lane to a keeper state |
@@ -20,6 +20,7 @@ enum class [[nodiscard]] FuncSubType | |||
20 | FastJIT | 20 | FastJIT |
21 | }; | 21 | }; |
22 | 22 | ||
23 | [[nodiscard]] | ||
23 | FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); | 24 | FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); |
24 | 25 | ||
25 | // ################################################################################################# | 26 | // ################################################################################################# |