aboutsummaryrefslogtreecommitdiff
path: root/src/stackindex.hpp
blob: c414ce2b72ffc9f2aba21c96a7cf66cf56d79c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "unique.hpp"

DECLARE_UNIQUE_TYPE(StackIndex, int);
static_assert(std::is_trivial_v<StackIndex>);

DECLARE_UNIQUE_TYPE(UserValueIndex, int);
static_assert(std::is_trivial_v<UserValueIndex>);

DECLARE_UNIQUE_TYPE(UserValueCount, int);
static_assert(std::is_trivial_v<UserValueCount>);

DECLARE_UNIQUE_TYPE(UnusedInt, int);
static_assert(std::is_trivial_v<UserValueCount>);

// #################################################################################################

static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX };
static constexpr StackIndex kIdxNone{ 0 };
static constexpr StackIndex kIdxTop{ -1 };