aboutsummaryrefslogtreecommitdiff
path: root/src/nameof.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:53:09 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:53:09 +0200
commit4044e86ea4197535b70bc434634faf90cd2317d0 (patch)
tree522af1b44e3dda30ff66ed2245aad54ceeb7e1b2 /src/nameof.cpp
parent958ed4f1e29418e90f3dd3de6779e30e05f70448 (diff)
downloadlanes-4044e86ea4197535b70bc434634faf90cd2317d0.tar.gz
lanes-4044e86ea4197535b70bc434634faf90cd2317d0.tar.bz2
lanes-4044e86ea4197535b70bc434634faf90cd2317d0.zip
Strengthen more code with UserValueIndex
Diffstat (limited to 'src/nameof.cpp')
-rw-r--r--src/nameof.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nameof.cpp b/src/nameof.cpp
index fd31a28..ef03820 100644
--- a/src/nameof.cpp
+++ b/src/nameof.cpp
@@ -125,7 +125,7 @@ THE SOFTWARE.
125 STACK_CHECK(L_, 2); 125 STACK_CHECK(L_, 2);
126 // search in the object's uservalues 126 // search in the object's uservalues
127 { 127 {
128 int _uvi{ 1 }; 128 UserValueIndex _uvi{ 1 };
129 while (lua_getiuservalue(L_, kIdxTop, _uvi) != LUA_TNONE) { // L_: o "r" {c} {fqn} ... {?} k U {u} 129 while (lua_getiuservalue(L_, kIdxTop, _uvi) != LUA_TNONE) { // L_: o "r" {c} {fqn} ... {?} k U {u}
130 if (lua_istable(L_, -1)) { // if it is a table, look inside 130 if (lua_istable(L_, -1)) { // if it is a table, look inside
131 ++depth_; 131 ++depth_;