diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 16:52:59 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 16:52:59 +0200 |
commit | 9a7c7f5f7ec66576447b4d225066cc388f8ca6b0 (patch) | |
tree | 074c31dc7e8ea867f6f841e287506c129cf5e14c /src/nameof.cpp | |
parent | c4aeac390daf21510575b6cad3163e9e6d34fd55 (diff) | |
download | lanes-9a7c7f5f7ec66576447b4d225066cc388f8ca6b0.tar.gz lanes-9a7c7f5f7ec66576447b4d225066cc388f8ca6b0.tar.bz2 lanes-9a7c7f5f7ec66576447b4d225066cc388f8ca6b0.zip |
Improvements in compat.h
Diffstat (limited to 'src/nameof.cpp')
-rw-r--r-- | src/nameof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nameof.cpp b/src/nameof.cpp index 6c968d5..543c3d4 100644 --- a/src/nameof.cpp +++ b/src/nameof.cpp | |||
@@ -191,7 +191,7 @@ LUAG_FUNC(nameof) | |||
191 | lua_pushliteral(L_, LUA_GNAME); // L_: o nil {c} {fqn} "_G" | 191 | lua_pushliteral(L_, LUA_GNAME); // L_: o nil {c} {fqn} "_G" |
192 | lua_rawseti(L_, -2, 1); // L_: o nil {c} {fqn} | 192 | lua_rawseti(L_, -2, 1); // L_: o nil {c} {fqn} |
193 | // this is where we start the search | 193 | // this is where we start the search |
194 | lua_pushglobaltable(L_); // L_: o nil {c} {fqn} _G | 194 | luaG_pushglobaltable(L_); // L_: o nil {c} {fqn} _G |
195 | std::ignore = DiscoverObjectNameRecur(L_, std::numeric_limits<int>::max(), 1); | 195 | std::ignore = DiscoverObjectNameRecur(L_, std::numeric_limits<int>::max(), 1); |
196 | if (lua_isnil(L_, 2)) { // try again with registry, just in case... | 196 | if (lua_isnil(L_, 2)) { // try again with registry, just in case... |
197 | lua_pop(L_, 1); // L_: o nil {c} {fqn} | 197 | lua_pop(L_, 1); // L_: o nil {c} {fqn} |