diff options
Diffstat (limited to '')
-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_ } |