aboutsummaryrefslogtreecommitdiff
path: root/src/universe.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/universe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.h b/src/universe.h
index 320c400..d0d7864 100644
--- a/src/universe.h
+++ b/src/universe.h
@@ -39,7 +39,7 @@ class AllocatorDefinition
39 [[nodiscard]] static void* operator new(size_t size_, lua_State* L) noexcept { return lua_newuserdatauv(L, size_, 0); } 39 [[nodiscard]] static void* operator new(size_t size_, lua_State* L) noexcept { return lua_newuserdatauv(L, size_, 0); }
40 // always embedded somewhere else or "in-place constructed" as a full userdata 40 // always embedded somewhere else or "in-place constructed" as a full userdata
41 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception 41 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception
42 static void operator delete([[maybe_unused]] void* p_, lua_State* L) { ASSERT_L(!"should never be called") }; 42 static void operator delete([[maybe_unused]] void* p_, lua_State* L_) { LUA_ASSERT(L_, !"should never be called"); }
43 43
44 AllocatorDefinition(lua_Alloc allocF_, void* allocUD_) noexcept 44 AllocatorDefinition(lua_Alloc allocF_, void* allocUD_) noexcept
45 : m_allocF{ allocF_ } 45 : m_allocF{ allocF_ }