aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 10:33:02 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 10:33:02 +0200
commit8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (patch)
treef27eba088bfbda6aed4f9d70e514ec87a5d553fc /src/linda.cpp
parent54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff)
downloadlanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz
lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2
lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'src/linda.cpp')
-rw-r--r--src/linda.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index bd40f5e..6655ae4 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -981,7 +981,7 @@ LUAG_FUNC(linda)
981 lua_replace(L_, 3); // L_: name group close_handler 981 lua_replace(L_, 3); // L_: name group close_handler
982 982
983 // if we have a __close handler, we need a uservalue slot to store it 983 // if we have a __close handler, we need a uservalue slot to store it
984 int const _nuv{ _closeHandlerIdx ? 1 : 0 }; 984 UserValueCount const _nuv{ _closeHandlerIdx ? 1 : 0 };
985 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, _nuv); // L_: name group close_handler linda 985 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, _nuv); // L_: name group close_handler linda
986 if (_closeHandlerIdx != 0) { 986 if (_closeHandlerIdx != 0) {
987 lua_replace(L_, 2); // L_: name linda close_handler 987 lua_replace(L_, 2); // L_: name linda close_handler
@@ -996,7 +996,7 @@ LUAG_FUNC(linda)
996 if (_nameIdx > _groupIdx) { 996 if (_nameIdx > _groupIdx) {
997 lua_insert(L_, 1); // L_: name group 997 lua_insert(L_, 1); // L_: name group
998 } 998 }
999 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, 0); // L_: name group linda 999 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, UserValueCount{ 0 }); // L_: name group linda
1000 return 1; 1000 return 1;
1001 } 1001 }
1002 1002