diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 11:30:18 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 11:30:18 +0200 |
commit | eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a (patch) | |
tree | d51d51eb2d48208df1cfdf6eb0bd40a928d6243c /src/stackindex.hpp | |
parent | 8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (diff) | |
download | lanes-eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a.tar.gz lanes-eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a.tar.bz2 lanes-eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a.zip |
Make Unique even stronger
Diffstat (limited to 'src/stackindex.hpp')
-rw-r--r-- | src/stackindex.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stackindex.hpp b/src/stackindex.hpp index 1c2ce8c..c414ce2 100644 --- a/src/stackindex.hpp +++ b/src/stackindex.hpp | |||
@@ -5,6 +5,9 @@ | |||
5 | DECLARE_UNIQUE_TYPE(StackIndex, int); | 5 | DECLARE_UNIQUE_TYPE(StackIndex, int); |
6 | static_assert(std::is_trivial_v<StackIndex>); | 6 | static_assert(std::is_trivial_v<StackIndex>); |
7 | 7 | ||
8 | DECLARE_UNIQUE_TYPE(UserValueIndex, int); | ||
9 | static_assert(std::is_trivial_v<UserValueIndex>); | ||
10 | |||
8 | DECLARE_UNIQUE_TYPE(UserValueCount, int); | 11 | DECLARE_UNIQUE_TYPE(UserValueCount, int); |
9 | static_assert(std::is_trivial_v<UserValueCount>); | 12 | static_assert(std::is_trivial_v<UserValueCount>); |
10 | 13 | ||
@@ -14,4 +17,5 @@ static_assert(std::is_trivial_v<UserValueCount>); | |||
14 | // ################################################################################################# | 17 | // ################################################################################################# |
15 | 18 | ||
16 | static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; | 19 | static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; |
20 | static constexpr StackIndex kIdxNone{ 0 }; | ||
17 | static constexpr StackIndex kIdxTop{ -1 }; | 21 | static constexpr StackIndex kIdxTop{ -1 }; |