aboutsummaryrefslogtreecommitdiff
path: root/src/stackindex.hpp
diff options
context:
space:
mode:
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 };