aboutsummaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/state.cpp b/src/state.cpp
index 9ad237d..2a69a46 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -190,7 +190,7 @@ static void open1lib(DEBUGSPEW_PARAM_COMMA(Universe* U) lua_State* L, char const
190// ################################################################################################# 190// #################################################################################################
191 191
192// just like lua_xmove, args are (from, to) 192// just like lua_xmove, args are (from, to)
193static void copy_one_time_settings(Universe* U, Source L1, Dest L2) 193static void copy_one_time_settings(Universe* U, SourceState L1, DestState L2)
194{ 194{
195 DEBUGSPEW_CODE(DebugSpewIndentScope scope{ U }); 195 DEBUGSPEW_CODE(DebugSpewIndentScope scope{ U });
196 196
@@ -331,9 +331,9 @@ void call_on_state_create(Universe* U, lua_State* L, lua_State* from_, LookupMod
331* *NOT* called for keeper states! 331* *NOT* called for keeper states!
332* 332*
333*/ 333*/
334lua_State* luaG_newstate(Universe* U, Source from_, char const* libs_) 334lua_State* luaG_newstate(Universe* U, SourceState from_, char const* libs_)
335{ 335{
336 Dest const L{ create_state(U, from_) }; 336 DestState const L{ create_state(U, from_) };
337 337
338 STACK_GROW(L, 2); 338 STACK_GROW(L, 2);
339 STACK_CHECK_START_ABS(L, 0); 339 STACK_CHECK_START_ABS(L, 0);
@@ -361,7 +361,7 @@ lua_State* luaG_newstate(Universe* U, Source from_, char const* libs_)
361 copy_one_time_settings( U, from_, L); 361 copy_one_time_settings( U, from_, L);
362 362
363 // 'lua.c' stops GC during initialization so perhaps its a good idea. :) 363 // 'lua.c' stops GC during initialization so perhaps its a good idea. :)
364 lua_gc( L, LUA_GCSTOP, 0); 364 lua_gc(L, LUA_GCSTOP, 0);
365 365
366 366
367 // Anything causes 'base' to be taken in 367 // Anything causes 'base' to be taken in