aboutsummaryrefslogtreecommitdiff
path: root/src/stackindex.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 10:33:02 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 10:33:02 +0200
commit8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (patch)
treef27eba088bfbda6aed4f9d70e514ec87a5d553fc /src/stackindex.hpp
parent54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff)
downloadlanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz
lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2
lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'src/stackindex.hpp')
-rw-r--r--src/stackindex.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stackindex.hpp b/src/stackindex.hpp
index 7c2c17a..1c2ce8c 100644
--- a/src/stackindex.hpp
+++ b/src/stackindex.hpp
@@ -5,6 +5,12 @@
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(UserValueCount, int);
9static_assert(std::is_trivial_v<UserValueCount>);
10
11DECLARE_UNIQUE_TYPE(UnusedInt, int);
12static_assert(std::is_trivial_v<UserValueCount>);
13
8// ################################################################################################# 14// #################################################################################################
9 15
10static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; 16static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX };