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 /deep_test | |
parent | 54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff) | |
download | lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2 lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip |
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'deep_test')
-rw-r--r-- | deep_test/deep_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deep_test/deep_test.cpp b/deep_test/deep_test.cpp index 39352f3..a6c6296 100644 --- a/deep_test/deep_test.cpp +++ b/deep_test/deep_test.cpp | |||
@@ -129,9 +129,9 @@ static luaL_Reg const deep_mt[] = { | |||
129 | 129 | ||
130 | int luaD_new_deep(lua_State* L) | 130 | int luaD_new_deep(lua_State* L) |
131 | { | 131 | { |
132 | int const nuv{ static_cast<int>(luaL_optinteger(L, 1, 0)) }; | 132 | UserValueCount const _nuv{ static_cast<int>(luaL_optinteger(L, 1, 0)) }; |
133 | lua_settop(L, 0); | 133 | lua_settop(L, 0); |
134 | MyDeepFactory::Instance.pushDeepUserdata(DestState{ L }, nuv); | 134 | MyDeepFactory::Instance.pushDeepUserdata(DestState{ L }, _nuv); |
135 | return 1; | 135 | return 1; |
136 | } | 136 | } |
137 | 137 | ||