diff options
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index a775895..6a84422 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -193,12 +193,12 @@ LUAG_FUNC(register) | |||
193 | // ignore extra parameters, just in case | 193 | // ignore extra parameters, just in case |
194 | lua_settop(L_, 2); | 194 | lua_settop(L_, 2); |
195 | luaL_argcheck(L_, (_mod_type == LuaType::TABLE) || (_mod_type == LuaType::FUNCTION), 2, "unexpected module type"); | 195 | luaL_argcheck(L_, (_mod_type == LuaType::TABLE) || (_mod_type == LuaType::FUNCTION), 2, "unexpected module type"); |
196 | DEBUGSPEW_CODE(Universe* U = universe_get(L_)); | 196 | DEBUGSPEW_CODE(Universe* _U = universe_get(L_)); |
197 | STACK_CHECK_START_REL(L_, 0); // "name" mod_table | 197 | STACK_CHECK_START_REL(L_, 0); // "name" mod_table |
198 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "lanes.register %s BEGIN\n" INDENT_END(U), _name)); | 198 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "lanes.register %s BEGIN\n" INDENT_END(_U), _name)); |
199 | DEBUGSPEW_CODE(DebugSpewIndentScope scope{ U }); | 199 | DEBUGSPEW_CODE(DebugSpewIndentScope _scope{ _U }); |
200 | populate_func_lookup_table(L_, -1, _name); | 200 | populate_func_lookup_table(L_, -1, _name); |
201 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "lanes.register %s END\n" INDENT_END(U), _name)); | 201 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "lanes.register %s END\n" INDENT_END(_U), _name)); |
202 | STACK_CHECK(L_, 0); | 202 | STACK_CHECK(L_, 0); |
203 | return 0; | 203 | return 0; |
204 | } | 204 | } |
@@ -375,7 +375,7 @@ LUAG_FUNC(lane_new) | |||
375 | if (_required_idx != 0) { | 375 | if (_required_idx != 0) { |
376 | int _nbRequired{ 1 }; | 376 | int _nbRequired{ 1 }; |
377 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "lane_new: require 'required' list\n" INDENT_END(_U))); | 377 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "lane_new: require 'required' list\n" INDENT_END(_U))); |
378 | DEBUGSPEW_CODE(DebugSpewIndentScope scope{ _U }); | 378 | DEBUGSPEW_CODE(DebugSpewIndentScope _scope{ _U }); |
379 | // should not happen, was checked in lanes.lua before calling lane_new() | 379 | // should not happen, was checked in lanes.lua before calling lane_new() |
380 | if (lua_type(L_, _required_idx) != LUA_TTABLE) { | 380 | if (lua_type(L_, _required_idx) != LUA_TTABLE) { |
381 | raise_luaL_error(L_, "expected required module list as a table, got %s", luaL_typename(L_, _required_idx)); | 381 | raise_luaL_error(L_, "expected required module list as a table, got %s", luaL_typename(L_, _required_idx)); |
@@ -701,7 +701,7 @@ LUAG_FUNC(configure) | |||
701 | STACK_CHECK_START_ABS(L_, 1); // L_: settings | 701 | STACK_CHECK_START_ABS(L_, 1); // L_: settings |
702 | 702 | ||
703 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "%p: lanes.configure() BEGIN\n" INDENT_END(_U), L_)); | 703 | DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "%p: lanes.configure() BEGIN\n" INDENT_END(_U), L_)); |
704 | DEBUGSPEW_CODE(DebugSpewIndentScope scope{ _U }); | 704 | DEBUGSPEW_CODE(DebugSpewIndentScope _scope{ _U }); |
705 | 705 | ||
706 | if (_U == nullptr) { | 706 | if (_U == nullptr) { |
707 | _U = universe_create(L_); // L_: settings universe | 707 | _U = universe_create(L_); // L_: settings universe |