diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 10:33:02 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 10:33:02 +0200 |
commit | 8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (patch) | |
tree | f27eba088bfbda6aed4f9d70e514ec87a5d553fc /src/deep.cpp | |
parent | 54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff) | |
download | lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2 lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip |
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'src/deep.cpp')
-rw-r--r-- | src/deep.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deep.cpp b/src/deep.cpp index a244f8b..0d801a3 100644 --- a/src/deep.cpp +++ b/src/deep.cpp | |||
@@ -175,7 +175,7 @@ DeepFactory* DeepFactory::LookupFactory(lua_State* const L_, StackIndex const in | |||
175 | * Initializes necessary structures if it's the first time 'factory' is being used in | 175 | * Initializes necessary structures if it's the first time 'factory' is being used in |
176 | * this Lua state (metatable, registring it). Otherwise, increments the reference count. | 176 | * this Lua state (metatable, registring it). Otherwise, increments the reference count. |
177 | */ | 177 | */ |
178 | void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_, int const nuv_, LookupMode const mode_, lua_State* const errL_) | 178 | void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_, UserValueCount const nuv_, LookupMode const mode_, lua_State* const errL_) |
179 | { | 179 | { |
180 | STACK_CHECK_START_REL(L_, 0); | 180 | STACK_CHECK_START_REL(L_, 0); |
181 | kDeepProxyCacheRegKey.getSubTableMode(L_, "v"); // L_: DPC | 181 | kDeepProxyCacheRegKey.getSubTableMode(L_, "v"); // L_: DPC |
@@ -302,7 +302,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_, | |||
302 | * | 302 | * |
303 | * Returns: 'proxy' userdata for accessing the deep data via 'DeepFactory::toDeep()' | 303 | * Returns: 'proxy' userdata for accessing the deep data via 'DeepFactory::toDeep()' |
304 | */ | 304 | */ |
305 | void DeepFactory::pushDeepUserdata(DestState const L_, int const nuv_) const | 305 | void DeepFactory::pushDeepUserdata(DestState const L_, UserValueCount const nuv_) const |
306 | { | 306 | { |
307 | STACK_GROW(L_, 1); | 307 | STACK_GROW(L_, 1); |
308 | STACK_CHECK_START_REL(L_, 0); | 308 | STACK_CHECK_START_REL(L_, 0); |