aboutsummaryrefslogtreecommitdiff
path: root/src/stackindex.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-09 09:43:24 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-09 09:43:24 +0200
commitea290e120ee0069e0c4a983d49fb69fc942dc3f2 (patch)
treed98f519b0a39f0f195b91f78ae62e040b5c59a79 /src/stackindex.hpp
parent08ceea621246a5085d75d698af5e7968262f4b3a (diff)
downloadlanes-ea290e120ee0069e0c4a983d49fb69fc942dc3f2.tar.gz
lanes-ea290e120ee0069e0c4a983d49fb69fc942dc3f2.tar.bz2
lanes-ea290e120ee0069e0c4a983d49fb69fc942dc3f2.zip
Improved Unique<> implementation, moved StackIndex into a separate header
Diffstat (limited to 'src/stackindex.hpp')
-rw-r--r--src/stackindex.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stackindex.hpp b/src/stackindex.hpp
new file mode 100644
index 0000000..7c2c17a
--- /dev/null
+++ b/src/stackindex.hpp
@@ -0,0 +1,11 @@
1#pragma once
2
3#include "unique.hpp"
4
5DECLARE_UNIQUE_TYPE(StackIndex, int);
6static_assert(std::is_trivial_v<StackIndex>);
7
8// #################################################################################################
9
10static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX };
11static constexpr StackIndex kIdxTop{ -1 };