diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-09 09:43:24 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-09 09:43:24 +0200 |
commit | ea290e120ee0069e0c4a983d49fb69fc942dc3f2 (patch) | |
tree | d98f519b0a39f0f195b91f78ae62e040b5c59a79 /src/stackindex.hpp | |
parent | 08ceea621246a5085d75d698af5e7968262f4b3a (diff) | |
download | lanes-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.hpp | 11 |
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 | |||
5 | DECLARE_UNIQUE_TYPE(StackIndex, int); | ||
6 | static_assert(std::is_trivial_v<StackIndex>); | ||
7 | |||
8 | // ################################################################################################# | ||
9 | |||
10 | static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; | ||
11 | static constexpr StackIndex kIdxTop{ -1 }; | ||