diff options
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 }; | ||