diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-02-05 12:27:02 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-02-05 12:27:02 +0100 |
commit | 05e4cce366cccf92ad88f80695efa548fae187de (patch) | |
tree | 3332753154ecd89a87d7fdd6a4f9383d1b66ed1f /src/stackindex.hpp | |
parent | 59ae58fd31d63c261372bd5a36765328583bc1b6 (diff) | |
download | lanes-05e4cce366cccf92ad88f80695efa548fae187de.tar.gz lanes-05e4cce366cccf92ad88f80695efa548fae187de.tar.bz2 lanes-05e4cce366cccf92ad88f80695efa548fae187de.zip |
Minor internal code tweaks
* mark all eligible classes Final
* new TableIndex strong type
* buildfixes for HAVE_DEBUGSPEW()
* overridden virtual destructors tagged as such
Diffstat (limited to 'src/stackindex.hpp')
-rw-r--r-- | src/stackindex.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stackindex.hpp b/src/stackindex.hpp index c414ce2..e7c1d8b 100644 --- a/src/stackindex.hpp +++ b/src/stackindex.hpp | |||
@@ -5,6 +5,9 @@ | |||
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(TableIndex, int); | ||
9 | static_assert(std::is_trivial_v<TableIndex>); | ||
10 | |||
8 | DECLARE_UNIQUE_TYPE(UserValueIndex, int); | 11 | DECLARE_UNIQUE_TYPE(UserValueIndex, int); |
9 | static_assert(std::is_trivial_v<UserValueIndex>); | 12 | static_assert(std::is_trivial_v<UserValueIndex>); |
10 | 13 | ||
@@ -12,7 +15,7 @@ DECLARE_UNIQUE_TYPE(UserValueCount, int); | |||
12 | static_assert(std::is_trivial_v<UserValueCount>); | 15 | static_assert(std::is_trivial_v<UserValueCount>); |
13 | 16 | ||
14 | DECLARE_UNIQUE_TYPE(UnusedInt, int); | 17 | DECLARE_UNIQUE_TYPE(UnusedInt, int); |
15 | static_assert(std::is_trivial_v<UserValueCount>); | 18 | static_assert(std::is_trivial_v<UnusedInt>); |
16 | 19 | ||
17 | // ################################################################################################# | 20 | // ################################################################################################# |
18 | 21 | ||