From 5c7ef34404d3367542275d76b49f276ab035639f Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 7 May 2024 09:42:09 +0200 Subject: Some more code refactorization --- deep_test/deep_test.vcxproj | 2 +- deep_test/deep_test.vcxproj.filters | 6 +++--- deep_test/deeptest.lua | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'deep_test') diff --git a/deep_test/deep_test.vcxproj b/deep_test/deep_test.vcxproj index ddfad5d..175433b 100644 --- a/deep_test/deep_test.vcxproj +++ b/deep_test/deep_test.vcxproj @@ -710,13 +710,13 @@ - + diff --git a/deep_test/deep_test.vcxproj.filters b/deep_test/deep_test.vcxproj.filters index 814301f..84527af 100644 --- a/deep_test/deep_test.vcxproj.filters +++ b/deep_test/deep_test.vcxproj.filters @@ -24,9 +24,6 @@ Lanes - - Lanes - Source Files @@ -44,6 +41,9 @@ Lanes + + Lanes + diff --git a/deep_test/deeptest.lua b/deep_test/deeptest.lua index 33de003..09b638c 100644 --- a/deep_test/deeptest.lua +++ b/deep_test/deeptest.lua @@ -7,7 +7,7 @@ local dt = lanes.require "deep_test" local test_deep = true local test_clonable = true local test_uvtype = "string" -local nupvals = _VERSION == "Lua 5.4" and 2 or 1 +local nupvals = _VERSION == "Lua 5.4" and 3 or 1 local makeUserValue = function( obj_) if test_uvtype == "string" then @@ -43,7 +43,8 @@ local performTest = function( obj_) obj_:setuv( 1, makeUserValue( obj_)) -- lua 5.4 supports multiple uservalues of arbitrary types if nupvals > 1 then - obj_:setuv( 2, "ENDUV") + -- keep uv #2 as nil + obj_:setuv( 3, "ENDUV") end local t = -- cgit v1.2.3-55-g6feb