aboutsummaryrefslogtreecommitdiff
path: root/src/stackindex.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-02-05 12:27:02 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-02-05 12:27:02 +0100
commit05e4cce366cccf92ad88f80695efa548fae187de (patch)
tree3332753154ecd89a87d7fdd6a4f9383d1b66ed1f /src/stackindex.hpp
parent59ae58fd31d63c261372bd5a36765328583bc1b6 (diff)
downloadlanes-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.hpp5
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 @@
5DECLARE_UNIQUE_TYPE(StackIndex, int); 5DECLARE_UNIQUE_TYPE(StackIndex, int);
6static_assert(std::is_trivial_v<StackIndex>); 6static_assert(std::is_trivial_v<StackIndex>);
7 7
8DECLARE_UNIQUE_TYPE(TableIndex, int);
9static_assert(std::is_trivial_v<TableIndex>);
10
8DECLARE_UNIQUE_TYPE(UserValueIndex, int); 11DECLARE_UNIQUE_TYPE(UserValueIndex, int);
9static_assert(std::is_trivial_v<UserValueIndex>); 12static_assert(std::is_trivial_v<UserValueIndex>);
10 13
@@ -12,7 +15,7 @@ DECLARE_UNIQUE_TYPE(UserValueCount, int);
12static_assert(std::is_trivial_v<UserValueCount>); 15static_assert(std::is_trivial_v<UserValueCount>);
13 16
14DECLARE_UNIQUE_TYPE(UnusedInt, int); 17DECLARE_UNIQUE_TYPE(UnusedInt, int);
15static_assert(std::is_trivial_v<UserValueCount>); 18static_assert(std::is_trivial_v<UnusedInt>);
16 19
17// ################################################################################################# 20// #################################################################################################
18 21