diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-24 14:49:22 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-24 14:49:22 +0200 |
commit | 5c52bacfda43024ba17f5b1188b0b67e4f30c887 (patch) | |
tree | 6a349d50c276b6463cbc8c079c668100c7de4f99 /src/universe.h | |
parent | ce7006e3c063fc1383c23d2e0e36917b31d04e3f (diff) | |
download | lanes-5c52bacfda43024ba17f5b1188b0b67e4f30c887.tar.gz lanes-5c52bacfda43024ba17f5b1188b0b67e4f30c887.tar.bz2 lanes-5c52bacfda43024ba17f5b1188b0b67e4f30c887.zip |
ASSERT_L → LUA_ASSERT
Diffstat (limited to 'src/universe.h')
-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 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_ } |