diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-17 18:35:34 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-17 18:35:34 +0200 |
commit | 742cfdd2f9009ed12d7109e152df8c760851a58a (patch) | |
tree | 08334e478055b7a58953abcff983c2fd6e1613f1 /src/universe.h | |
parent | 823d3d570236e32bdbe270306df5602ff586c4a7 (diff) | |
download | lanes-742cfdd2f9009ed12d7109e152df8c760851a58a.tar.gz lanes-742cfdd2f9009ed12d7109e152df8c760851a58a.tar.bz2 lanes-742cfdd2f9009ed12d7109e152df8c760851a58a.zip |
Minor code tweaks
Diffstat (limited to 'src/universe.h')
-rw-r--r-- | src/universe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.h b/src/universe.h index 4ed1776..f5327a6 100644 --- a/src/universe.h +++ b/src/universe.h | |||
@@ -36,7 +36,7 @@ class AllocatorDefinition | |||
36 | [[nodiscard]] static void* operator new(size_t size_, lua_State* L_) noexcept { return lua_newuserdatauv(L_, size_, 0); } | 36 | [[nodiscard]] static void* operator new(size_t size_, lua_State* L_) noexcept { return lua_newuserdatauv(L_, size_, 0); } |
37 | // always embedded somewhere else or "in-place constructed" as a full userdata | 37 | // always embedded somewhere else or "in-place constructed" as a full userdata |
38 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception | 38 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception |
39 | static void operator delete([[maybe_unused]] void* p_, lua_State* L_) { LUA_ASSERT(L_, !"should never be called"); } | 39 | static void operator delete([[maybe_unused]] void* p_, [[maybe_unused]] lua_State* L_) { LUA_ASSERT(L_, !"should never be called"); } |
40 | 40 | ||
41 | AllocatorDefinition(lua_Alloc allocF_, void* allocUD_) noexcept | 41 | AllocatorDefinition(lua_Alloc allocF_, void* allocUD_) noexcept |
42 | : allocF{ allocF_ } | 42 | : allocF{ allocF_ } |