aboutsummaryrefslogtreecommitdiff
path: root/src/universe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/universe.h')
-rw-r--r--src/universe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.h b/src/universe.h
index dc8940f..75e2198 100644
--- a/src/universe.h
+++ b/src/universe.h
@@ -119,7 +119,7 @@ class Universe
119 std::atomic<int> selfdestructingCount{ 0 }; 119 std::atomic<int> selfdestructingCount{ 0 };
120 120
121 public: 121 public:
122 [[nodiscard]] static void* operator new([[maybe_unused]] size_t size_, lua_State* L_) noexcept { return luaG_newuserdatauv<Universe>(L_, 0); }; 122 [[nodiscard]] static void* operator new([[maybe_unused]] size_t size_, lua_State* L_) noexcept { return luaG_newuserdatauv<Universe>(L_, UserValueCount{ 0 }); };
123 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception 123 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception
124 static void operator delete([[maybe_unused]] void* p_, [[maybe_unused]] lua_State* L_) {} // nothing to do, as nothing is allocated independently 124 static void operator delete([[maybe_unused]] void* p_, [[maybe_unused]] lua_State* L_) {} // nothing to do, as nothing is allocated independently
125 125