aboutsummaryrefslogtreecommitdiff
path: root/deep_test
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-07 09:42:09 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-07 09:42:09 +0200
commit5c7ef34404d3367542275d76b49f276ab035639f (patch)
treede148388b0382d87bcc2caed72625e3dec829bda /deep_test
parent45a579cdb43917e648e2e801432f6e7820004614 (diff)
downloadlanes-5c7ef34404d3367542275d76b49f276ab035639f.tar.gz
lanes-5c7ef34404d3367542275d76b49f276ab035639f.tar.bz2
lanes-5c7ef34404d3367542275d76b49f276ab035639f.zip
Some more code refactorization
Diffstat (limited to 'deep_test')
-rw-r--r--deep_test/deep_test.vcxproj2
-rw-r--r--deep_test/deep_test.vcxproj.filters6
-rw-r--r--deep_test/deeptest.lua5
3 files changed, 7 insertions, 6 deletions
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 @@
710 <ClCompile Include="..\src\compat.cpp" /> 710 <ClCompile Include="..\src\compat.cpp" />
711 <ClCompile Include="..\src\deep.cpp" /> 711 <ClCompile Include="..\src\deep.cpp" />
712 <ClCompile Include="..\src\tools.cpp" /> 712 <ClCompile Include="..\src\tools.cpp" />
713 <ClCompile Include="..\src\universe.cpp" />
714 <ClCompile Include="deep_test.cpp" /> 713 <ClCompile Include="deep_test.cpp" />
715 </ItemGroup> 714 </ItemGroup>
716 <ItemGroup> 715 <ItemGroup>
717 <ClInclude Include="..\src\compat.h" /> 716 <ClInclude Include="..\src\compat.h" />
718 <ClInclude Include="..\src\deep.h" /> 717 <ClInclude Include="..\src\deep.h" />
719 <ClInclude Include="..\src\tools.h" /> 718 <ClInclude Include="..\src\tools.h" />
719 <ClInclude Include="..\src\uniquekey.h" />
720 <ClInclude Include="..\src\universe.h" /> 720 <ClInclude Include="..\src\universe.h" />
721 </ItemGroup> 721 </ItemGroup>
722 <ItemGroup> 722 <ItemGroup>
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 @@
24 <ClCompile Include="..\src\tools.cpp"> 24 <ClCompile Include="..\src\tools.cpp">
25 <Filter>Lanes</Filter> 25 <Filter>Lanes</Filter>
26 </ClCompile> 26 </ClCompile>
27 <ClCompile Include="..\src\universe.cpp">
28 <Filter>Lanes</Filter>
29 </ClCompile>
30 <ClCompile Include="deep_test.cpp"> 27 <ClCompile Include="deep_test.cpp">
31 <Filter>Source Files</Filter> 28 <Filter>Source Files</Filter>
32 </ClCompile> 29 </ClCompile>
@@ -44,6 +41,9 @@
44 <ClInclude Include="..\src\tools.h"> 41 <ClInclude Include="..\src\tools.h">
45 <Filter>Lanes</Filter> 42 <Filter>Lanes</Filter>
46 </ClInclude> 43 </ClInclude>
44 <ClInclude Include="..\src\uniquekey.h">
45 <Filter>Lanes</Filter>
46 </ClInclude>
47 </ItemGroup> 47 </ItemGroup>
48 <ItemGroup> 48 <ItemGroup>
49 <None Include="deeptest.lua"> 49 <None Include="deeptest.lua">
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"
7local test_deep = true 7local test_deep = true
8local test_clonable = true 8local test_clonable = true
9local test_uvtype = "string" 9local test_uvtype = "string"
10local nupvals = _VERSION == "Lua 5.4" and 2 or 1 10local nupvals = _VERSION == "Lua 5.4" and 3 or 1
11 11
12local makeUserValue = function( obj_) 12local makeUserValue = function( obj_)
13 if test_uvtype == "string" then 13 if test_uvtype == "string" then
@@ -43,7 +43,8 @@ local performTest = function( obj_)
43 obj_:setuv( 1, makeUserValue( obj_)) 43 obj_:setuv( 1, makeUserValue( obj_))
44 -- lua 5.4 supports multiple uservalues of arbitrary types 44 -- lua 5.4 supports multiple uservalues of arbitrary types
45 if nupvals > 1 then 45 if nupvals > 1 then
46 obj_:setuv( 2, "ENDUV") 46 -- keep uv #2 as nil
47 obj_:setuv( 3, "ENDUV")
47 end 48 end
48 49
49 local t = 50 local t =