diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-28 17:25:51 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-28 17:25:51 +0100 |
commit | 5d365d54efef5dfd0dca814346bfee791eacab90 (patch) | |
tree | a86b216c2474a590237154944bb2ee70fe9e2ed2 /src/keeper.cpp | |
parent | 089f68cf6d18799028eb12cc16bbe2f8cf5e57c3 (diff) | |
download | lanes-5d365d54efef5dfd0dca814346bfee791eacab90.tar.gz lanes-5d365d54efef5dfd0dca814346bfee791eacab90.tar.bz2 lanes-5d365d54efef5dfd0dca814346bfee791eacab90.zip |
C++ migration: lots of noise, but it's only some minor code cleanup
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 9c41b1c..f88d0ab 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -64,7 +64,7 @@ class keeper_fifo | |||
64 | static void* operator new(size_t size_, lua_State* L) noexcept { return lua_newuserdatauv<keeper_fifo>(L, 1); } | 64 | static void* operator new(size_t size_, lua_State* L) noexcept { return lua_newuserdatauv<keeper_fifo>(L, 1); } |
65 | // always embedded somewhere else or "in-place constructed" as a full userdata | 65 | // always embedded somewhere else or "in-place constructed" as a full userdata |
66 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception | 66 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception |
67 | static void operator delete(void* p_, lua_State* L){ ASSERT_L(!"should never be called") }; | 67 | static void operator delete(void* p_, lua_State* L) { ASSERT_L(!"should never be called") }; |
68 | 68 | ||
69 | static keeper_fifo* getPtr(lua_State* L, int idx_) | 69 | static keeper_fifo* getPtr(lua_State* L, int idx_) |
70 | { | 70 | { |