aboutsummaryrefslogtreecommitdiff
path: root/src/compat.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/compat.cpp
parent54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff)
downloadlanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz
lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2
lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'src/compat.cpp')
-rw-r--r--src/compat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat.cpp b/src/compat.cpp
index 6bdeecc..1be910f 100644
--- a/src/compat.cpp
+++ b/src/compat.cpp
@@ -5,11 +5,11 @@
5 5
6// ################################################################################################# 6// #################################################################################################
7 7
8int luaG_getalluservalues(lua_State* const L_, StackIndex const idx_) 8UserValueCount luaG_getalluservalues(lua_State* const L_, StackIndex const idx_)
9{ 9{
10 STACK_CHECK_START_REL(L_, 0); 10 STACK_CHECK_START_REL(L_, 0);
11 StackIndex const _idx{ luaG_absindex(L_, idx_) }; 11 StackIndex const _idx{ luaG_absindex(L_, idx_) };
12 int _nuv{ 0 }; 12 UserValueCount _nuv{ 0 };
13 do { 13 do {
14 // we don't know how many uservalues we are going to extract, there might be a lot... 14 // we don't know how many uservalues we are going to extract, there might be a lot...
15 STACK_GROW(L_, 1); 15 STACK_GROW(L_, 1);