diff options
Diffstat (limited to 'src/tools.cpp')
-rw-r--r-- | src/tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools.cpp b/src/tools.cpp index e6dadd2..e7d1775 100644 --- a/src/tools.cpp +++ b/src/tools.cpp | |||
@@ -71,7 +71,7 @@ static constexpr int kWriterReturnCode{ 666 }; | |||
71 | } | 71 | } |
72 | { | 72 | { |
73 | int _mustpush{ 0 }; | 73 | int _mustpush{ 0 }; |
74 | if (lua_absindex(L_, _i) != lua_gettop(L_)) { | 74 | if (luaG_absindex(L_, _i) != lua_gettop(L_)) { |
75 | lua_pushvalue(L_, _i); | 75 | lua_pushvalue(L_, _i); |
76 | _mustpush = 1; | 76 | _mustpush = 1; |
77 | } | 77 | } |
@@ -306,7 +306,7 @@ namespace tools { | |||
306 | // create a "fully.qualified.name" <-> function equivalence database | 306 | // create a "fully.qualified.name" <-> function equivalence database |
307 | void PopulateFuncLookupTable(lua_State* const L_, int const i_, std::string_view const& name_) | 307 | void PopulateFuncLookupTable(lua_State* const L_, int const i_, std::string_view const& name_) |
308 | { | 308 | { |
309 | int const _in_base{ lua_absindex(L_, i_) }; | 309 | int const _in_base{ luaG_absindex(L_, i_) }; |
310 | DEBUGSPEW_CODE(Universe* _U = Universe::Get(L_)); | 310 | DEBUGSPEW_CODE(Universe* _U = Universe::Get(L_)); |
311 | std::string_view _name{ name_.empty() ? std::string_view{} : name_ }; | 311 | std::string_view _name{ name_.empty() ? std::string_view{} : name_ }; |
312 | DEBUGSPEW_CODE(DebugSpew(_U) << L_ << ": PopulateFuncLookupTable('" << _name << "')" << std::endl); | 312 | DEBUGSPEW_CODE(DebugSpew(_U) << L_ << ": PopulateFuncLookupTable('" << _name << "')" << std::endl); |