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/universe.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/universe.hpp')
-rw-r--r-- | src/universe.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/universe.hpp b/src/universe.hpp index d35172d..75604d8 100644 --- a/src/universe.hpp +++ b/src/universe.hpp | |||
@@ -16,7 +16,7 @@ class Linda; | |||
16 | // ################################################################################################# | 16 | // ################################################################################################# |
17 | 17 | ||
18 | // mutex-protected allocator for use with Lua states that share a non-threadsafe allocator | 18 | // mutex-protected allocator for use with Lua states that share a non-threadsafe allocator |
19 | class ProtectedAllocator | 19 | class ProtectedAllocator final |
20 | : public lanes::AllocatorDefinition | 20 | : public lanes::AllocatorDefinition |
21 | { | 21 | { |
22 | private: | 22 | private: |
@@ -67,7 +67,7 @@ static constexpr RegistryUniqueKey kUniverseLightRegKey{ 0x48BBE9CEAB0BA04Full } | |||
67 | 67 | ||
68 | // everything regarding the Lanes universe is stored in that global structure | 68 | // everything regarding the Lanes universe is stored in that global structure |
69 | // held as a full userdata in the master Lua state that required it for the first time | 69 | // held as a full userdata in the master Lua state that required it for the first time |
70 | class Universe | 70 | class Universe final |
71 | { | 71 | { |
72 | public: | 72 | public: |
73 | static constexpr char const* kFinally{ "finally" }; // update lanes.lua if the name changes! | 73 | static constexpr char const* kFinally{ "finally" }; // update lanes.lua if the name changes! |