diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 10:33:02 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 10:33:02 +0200 |
| commit | 8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (patch) | |
| tree | f27eba088bfbda6aed4f9d70e514ec87a5d553fc /src/stackindex.hpp | |
| parent | 54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff) | |
| download | lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2 lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip | |
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'src/stackindex.hpp')
| -rw-r--r-- | src/stackindex.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stackindex.hpp b/src/stackindex.hpp index 7c2c17a..1c2ce8c 100644 --- a/src/stackindex.hpp +++ b/src/stackindex.hpp | |||
| @@ -5,6 +5,12 @@ | |||
| 5 | DECLARE_UNIQUE_TYPE(StackIndex, int); | 5 | DECLARE_UNIQUE_TYPE(StackIndex, int); |
| 6 | static_assert(std::is_trivial_v<StackIndex>); | 6 | static_assert(std::is_trivial_v<StackIndex>); |
| 7 | 7 | ||
| 8 | DECLARE_UNIQUE_TYPE(UserValueCount, int); | ||
| 9 | static_assert(std::is_trivial_v<UserValueCount>); | ||
| 10 | |||
| 11 | DECLARE_UNIQUE_TYPE(UnusedInt, int); | ||
| 12 | static_assert(std::is_trivial_v<UserValueCount>); | ||
| 13 | |||
| 8 | // ################################################################################################# | 14 | // ################################################################################################# |
| 9 | 15 | ||
| 10 | static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; | 16 | static constexpr StackIndex kIdxRegistry{ LUA_REGISTRYINDEX }; |
