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