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/keeper.cpp | |
parent | 823d3d570236e32bdbe270306df5602ff586c4a7 (diff) | |
download | lanes-742cfdd2f9009ed12d7109e152df8c760851a58a.tar.gz lanes-742cfdd2f9009ed12d7109e152df8c760851a58a.tar.bz2 lanes-742cfdd2f9009ed12d7109e152df8c760851a58a.zip |
Minor code tweaks
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r-- | src/keeper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp index dcfb431..2f8817c 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -61,7 +61,7 @@ class keeper_fifo | |||
61 | [[nodiscard]] static void* operator new([[maybe_unused]] size_t size_, KeeperState L_) noexcept { return lua_newuserdatauv<keeper_fifo>(L_, 1); } | 61 | [[nodiscard]] static void* operator new([[maybe_unused]] size_t size_, KeeperState L_) noexcept { return lua_newuserdatauv<keeper_fifo>(L_, 1); } |
62 | // always embedded somewhere else or "in-place constructed" as a full userdata | 62 | // always embedded somewhere else or "in-place constructed" as a full userdata |
63 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception | 63 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception |
64 | static void operator delete([[maybe_unused]] void* p_, KeeperState L_) { LUA_ASSERT(L_, !"should never be called"); } | 64 | static void operator delete([[maybe_unused]] void* p_, [[maybe_unused]] KeeperState L_) { LUA_ASSERT(L_, !"should never be called"); } |
65 | 65 | ||
66 | [[nodiscard]] static keeper_fifo* getPtr(lua_State* L_, int idx_) | 66 | [[nodiscard]] static keeper_fifo* getPtr(lua_State* L_, int idx_) |
67 | { | 67 | { |