aboutsummaryrefslogtreecommitdiff
path: root/src/universe.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/universe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/universe.cpp b/src/universe.cpp
index 112c840..fb10067 100644
--- a/src/universe.cpp
+++ b/src/universe.cpp
@@ -75,7 +75,7 @@ Universe::Universe()
75// only called from the master state 75// only called from the master state
76Universe* universe_create(lua_State* L) 76Universe* universe_create(lua_State* L)
77{ 77{
78 ASSERT_L(universe_get(L) == nullptr); 78 LUA_ASSERT(L, universe_get(L) == nullptr);
79 Universe* const U{ lua_newuserdatauv<Universe>(L, 0) }; // universe 79 Universe* const U{ lua_newuserdatauv<Universe>(L, 0) }; // universe
80 U->Universe::Universe(); 80 U->Universe::Universe();
81 STACK_CHECK_START_REL(L, 1); 81 STACK_CHECK_START_REL(L, 1);
@@ -89,7 +89,7 @@ Universe* universe_create(lua_State* L)
89 89
90void universe_store(lua_State* L, Universe* U) 90void universe_store(lua_State* L, Universe* U)
91{ 91{
92 ASSERT_L(!U || universe_get(L) == nullptr); 92 LUA_ASSERT(L, !U || universe_get(L) == nullptr);
93 STACK_CHECK_START_REL(L, 0); 93 STACK_CHECK_START_REL(L, 0);
94 UNIVERSE_LIGHT_REGKEY.setValue(L, [U](lua_State* L) { U ? lua_pushlightuserdata(L, U) : lua_pushnil(L); }); 94 UNIVERSE_LIGHT_REGKEY.setValue(L, [U](lua_State* L) { U ? lua_pushlightuserdata(L, U) : lua_pushnil(L); });
95 STACK_CHECK(L, 0); 95 STACK_CHECK(L, 0);