aboutsummaryrefslogtreecommitdiff
path: root/src/stackindex.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 11:30:18 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 11:30:18 +0200
commiteba98e4e1adcf3ce11e5934e2dce54f29aef1e0a (patch)
treed51d51eb2d48208df1cfdf6eb0bd40a928d6243c /src/stackindex.hpp
parent8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (diff)
downloadlanes-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.hpp4
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 @@
5DECLARE_UNIQUE_TYPE(StackIndex, int); 5DECLARE_UNIQUE_TYPE(StackIndex, int);
6static_assert(std::is_trivial_v<StackIndex>); 6static_assert(std::is_trivial_v<StackIndex>);
7 7
8DECLARE_UNIQUE_TYPE(UserValueIndex, int);
9static_assert(std::is_trivial_v<UserValueIndex>);
10
8DECLARE_UNIQUE_TYPE(UserValueCount, int); 11DECLARE_UNIQUE_TYPE(UserValueCount, int);
9static_assert(std::is_trivial_v<UserValueCount>); 12static_assert(std::is_trivial_v<UserValueCount>);
10 13
@@ -14,4 +17,5 @@ static_assert(std::is_trivial_v<UserValueCount>);
14// ################################################################################################# 17// #################################################################################################
15 18
16static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; 19static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX };
20static constexpr StackIndex kIdxNone{ 0 };
17static constexpr StackIndex kIdxTop{ -1 }; 21static constexpr StackIndex kIdxTop{ -1 };