diff options
| -rw-r--r-- | deep_test/deep_test.vcxproj | 89 | ||||
| -rw-r--r-- | deep_test/deep_test.vcxproj.user | 12 | ||||
| -rw-r--r-- | unit_tests/UnitTests.vcxproj | 65 | ||||
| -rw-r--r-- | unit_tests/UnitTests.vcxproj.user | 10 | ||||
| -rw-r--r-- | unit_tests/init_and_shutdown.cpp | 12 | ||||
| -rw-r--r-- | unit_tests/lane_tests.cpp | 5 | ||||
| -rw-r--r-- | unit_tests/scripts/lane/cooperative_shutdown.lua | 6 | ||||
| -rw-r--r-- | unit_tests/shared.cpp | 16 |
8 files changed, 204 insertions, 11 deletions
diff --git a/deep_test/deep_test.vcxproj b/deep_test/deep_test.vcxproj index 734f0c5..78706ed 100644 --- a/deep_test/deep_test.vcxproj +++ b/deep_test/deep_test.vcxproj | |||
| @@ -69,6 +69,18 @@ | |||
| 69 | <Configuration>Debug LuaJIT 2.1.0-beta3</Configuration> | 69 | <Configuration>Debug LuaJIT 2.1.0-beta3</Configuration> |
| 70 | <Platform>x64</Platform> | 70 | <Platform>x64</Platform> |
| 71 | </ProjectConfiguration> | 71 | </ProjectConfiguration> |
| 72 | <ProjectConfiguration Include="Debug LuaJIT GIT|Prospero"> | ||
| 73 | <Configuration>Debug LuaJIT GIT</Configuration> | ||
| 74 | <Platform>Prospero</Platform> | ||
| 75 | </ProjectConfiguration> | ||
| 76 | <ProjectConfiguration Include="Debug LuaJIT GIT|Win32"> | ||
| 77 | <Configuration>Debug LuaJIT GIT</Configuration> | ||
| 78 | <Platform>Win32</Platform> | ||
| 79 | </ProjectConfiguration> | ||
| 80 | <ProjectConfiguration Include="Debug LuaJIT GIT|x64"> | ||
| 81 | <Configuration>Debug LuaJIT GIT</Configuration> | ||
| 82 | <Platform>x64</Platform> | ||
| 83 | </ProjectConfiguration> | ||
| 72 | <ProjectConfiguration Include="Debug MoonJIT|Prospero"> | 84 | <ProjectConfiguration Include="Debug MoonJIT|Prospero"> |
| 73 | <Configuration>Debug MoonJIT</Configuration> | 85 | <Configuration>Debug MoonJIT</Configuration> |
| 74 | <Platform>Prospero</Platform> | 86 | <Platform>Prospero</Platform> |
| @@ -147,6 +159,12 @@ | |||
| 147 | <PlatformToolset>v143</PlatformToolset> | 159 | <PlatformToolset>v143</PlatformToolset> |
| 148 | <CharacterSet>MultiByte</CharacterSet> | 160 | <CharacterSet>MultiByte</CharacterSet> |
| 149 | </PropertyGroup> | 161 | </PropertyGroup> |
| 162 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'" Label="Configuration"> | ||
| 163 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 164 | <UseDebugLibraries>true</UseDebugLibraries> | ||
| 165 | <PlatformToolset>v143</PlatformToolset> | ||
| 166 | <CharacterSet>MultiByte</CharacterSet> | ||
| 167 | </PropertyGroup> | ||
| 150 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'" Label="Configuration"> | 168 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'" Label="Configuration"> |
| 151 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 169 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 152 | <UseDebugLibraries>true</UseDebugLibraries> | 170 | <UseDebugLibraries>true</UseDebugLibraries> |
| @@ -203,6 +221,12 @@ | |||
| 203 | <PlatformToolset>v143</PlatformToolset> | 221 | <PlatformToolset>v143</PlatformToolset> |
| 204 | <CharacterSet>MultiByte</CharacterSet> | 222 | <CharacterSet>MultiByte</CharacterSet> |
| 205 | </PropertyGroup> | 223 | </PropertyGroup> |
| 224 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'" Label="Configuration"> | ||
| 225 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 226 | <UseDebugLibraries>true</UseDebugLibraries> | ||
| 227 | <PlatformToolset>v143</PlatformToolset> | ||
| 228 | <CharacterSet>MultiByte</CharacterSet> | ||
| 229 | </PropertyGroup> | ||
| 206 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'" Label="Configuration"> | 230 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'" Label="Configuration"> |
| 207 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 231 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 208 | <UseDebugLibraries>true</UseDebugLibraries> | 232 | <UseDebugLibraries>true</UseDebugLibraries> |
| @@ -256,6 +280,9 @@ | |||
| 256 | <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT 2.0.5|Prospero'"> | 280 | <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT 2.0.5|Prospero'"> |
| 257 | <PlatformToolset>Clang</PlatformToolset> | 281 | <PlatformToolset>Clang</PlatformToolset> |
| 258 | </PropertyGroup> | 282 | </PropertyGroup> |
| 283 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Prospero'" Label="Configuration"> | ||
| 284 | <PlatformToolset>Clang</PlatformToolset> | ||
| 285 | </PropertyGroup> | ||
| 259 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 286 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 260 | <ImportGroup Label="ExtensionSettings"> | 287 | <ImportGroup Label="ExtensionSettings"> |
| 261 | </ImportGroup> | 288 | </ImportGroup> |
| @@ -276,6 +303,9 @@ | |||
| 276 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT 2.0.5|Win32'" Label="PropertySheets"> | 303 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT 2.0.5|Win32'" Label="PropertySheets"> |
| 277 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | 304 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 278 | </ImportGroup> | 305 | </ImportGroup> |
| 306 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'" Label="PropertySheets"> | ||
| 307 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
| 308 | </ImportGroup> | ||
| 279 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'" Label="PropertySheets"> | 309 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'" Label="PropertySheets"> |
| 280 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | 310 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 281 | </ImportGroup> | 311 | </ImportGroup> |
| @@ -303,6 +333,9 @@ | |||
| 303 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT 2.0.5|x64'" Label="PropertySheets"> | 333 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT 2.0.5|x64'" Label="PropertySheets"> |
| 304 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | 334 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 305 | </ImportGroup> | 335 | </ImportGroup> |
| 336 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'" Label="PropertySheets"> | ||
| 337 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
| 338 | </ImportGroup> | ||
| 306 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'" Label="PropertySheets"> | 339 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'" Label="PropertySheets"> |
| 307 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | 340 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 308 | </ImportGroup> | 341 | </ImportGroup> |
| @@ -341,6 +374,11 @@ | |||
| 341 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 374 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> |
| 342 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 375 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 343 | </PropertyGroup> | 376 | </PropertyGroup> |
| 377 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'"> | ||
| 378 | <TargetExt>.dll</TargetExt> | ||
| 379 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | ||
| 380 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | ||
| 381 | </PropertyGroup> | ||
| 344 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> | 382 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> |
| 345 | <TargetExt>.dll</TargetExt> | 383 | <TargetExt>.dll</TargetExt> |
| 346 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 384 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> |
| @@ -376,6 +414,11 @@ | |||
| 376 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 414 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> |
| 377 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 415 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 378 | </PropertyGroup> | 416 | </PropertyGroup> |
| 417 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'"> | ||
| 418 | <TargetExt>.dll</TargetExt> | ||
| 419 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | ||
| 420 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | ||
| 421 | </PropertyGroup> | ||
| 379 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'"> | 422 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'"> |
| 380 | <TargetExt>.dll</TargetExt> | 423 | <TargetExt>.dll</TargetExt> |
| 381 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 424 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> |
| @@ -529,7 +572,7 @@ | |||
| 529 | <Optimization>Disabled</Optimization> | 572 | <Optimization>Disabled</Optimization> |
| 530 | <SDLCheck>true</SDLCheck> | 573 | <SDLCheck>true</SDLCheck> |
| 531 | <ConformanceMode>true</ConformanceMode> | 574 | <ConformanceMode>true</ConformanceMode> |
| 532 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-2.0.5\src;$(SolutionDir)Lanes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | 575 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-GIT\src;$(SolutionDir)Lanes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 533 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> | 576 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> |
| 534 | <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 577 | <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 535 | <LanguageStandard>stdcpp20</LanguageStandard> | 578 | <LanguageStandard>stdcpp20</LanguageStandard> |
| @@ -544,6 +587,27 @@ | |||
| 544 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-2.0.5\bin\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | 587 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-2.0.5\bin\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
| 545 | </Link> | 588 | </Link> |
| 546 | </ItemDefinitionGroup> | 589 | </ItemDefinitionGroup> |
| 590 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'"> | ||
| 591 | <ClCompile> | ||
| 592 | <WarningLevel>Level3</WarningLevel> | ||
| 593 | <Optimization>Disabled</Optimization> | ||
| 594 | <SDLCheck>true</SDLCheck> | ||
| 595 | <ConformanceMode>true</ConformanceMode> | ||
| 596 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-GIT\src;$(SolutionDir)Lanes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 597 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> | ||
| 598 | <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 599 | <LanguageStandard>stdcpp20</LanguageStandard> | ||
| 600 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
| 601 | </ClCompile> | ||
| 602 | <PostBuildEvent> | ||
| 603 | <Command>xcopy /R /F /Y /I "$(TargetPath)" $(SolutionDir)..\LuaJIT-2.0.5\bin\$(Platform)\</Command> | ||
| 604 | <Message>Copy to LuaJITGIT</Message> | ||
| 605 | </PostBuildEvent> | ||
| 606 | <Link> | ||
| 607 | <AdditionalDependencies>lua51.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
| 608 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-GIT\bin\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
| 609 | </Link> | ||
| 610 | </ItemDefinitionGroup> | ||
| 547 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'"> | 611 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'"> |
| 548 | <ClCompile> | 612 | <ClCompile> |
| 549 | <WarningLevel>Level3</WarningLevel> | 613 | <WarningLevel>Level3</WarningLevel> |
| @@ -674,7 +738,7 @@ | |||
| 674 | <Optimization>Disabled</Optimization> | 738 | <Optimization>Disabled</Optimization> |
| 675 | <SDLCheck>true</SDLCheck> | 739 | <SDLCheck>true</SDLCheck> |
| 676 | <ConformanceMode>true</ConformanceMode> | 740 | <ConformanceMode>true</ConformanceMode> |
| 677 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-2.0.5\src;$(SolutionDir)Lanes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | 741 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-GIT\src;$(SolutionDir)Lanes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 678 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> | 742 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> |
| 679 | <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 743 | <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 680 | <LanguageStandard>stdcpp20</LanguageStandard> | 744 | <LanguageStandard>stdcpp20</LanguageStandard> |
| @@ -689,6 +753,27 @@ | |||
| 689 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-2.0.5\bin\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | 753 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-2.0.5\bin\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
| 690 | </Link> | 754 | </Link> |
| 691 | </ItemDefinitionGroup> | 755 | </ItemDefinitionGroup> |
| 756 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'"> | ||
| 757 | <ClCompile> | ||
| 758 | <WarningLevel>Level3</WarningLevel> | ||
| 759 | <Optimization>Disabled</Optimization> | ||
| 760 | <SDLCheck>true</SDLCheck> | ||
| 761 | <ConformanceMode>true</ConformanceMode> | ||
| 762 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-GIT\src;$(SolutionDir)Lanes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 763 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> | ||
| 764 | <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 765 | <LanguageStandard>stdcpp20</LanguageStandard> | ||
| 766 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
| 767 | </ClCompile> | ||
| 768 | <PostBuildEvent> | ||
| 769 | <Command>xcopy /R /F /Y /I "$(TargetPath)" $(SolutionDir)..\LuaJIT-GIT\bin\$(Platform)\</Command> | ||
| 770 | <Message>Copy to LuaJITGIT</Message> | ||
| 771 | </PostBuildEvent> | ||
| 772 | <Link> | ||
| 773 | <AdditionalDependencies>lua51.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
| 774 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-GIT\bin\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
| 775 | </Link> | ||
| 776 | </ItemDefinitionGroup> | ||
| 692 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> | 777 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> |
| 693 | <ClCompile> | 778 | <ClCompile> |
| 694 | <WarningLevel>Level3</WarningLevel> | 779 | <WarningLevel>Level3</WarningLevel> |
diff --git a/deep_test/deep_test.vcxproj.user b/deep_test/deep_test.vcxproj.user index 257d4e9..e798643 100644 --- a/deep_test/deep_test.vcxproj.user +++ b/deep_test/deep_test.vcxproj.user | |||
| @@ -33,6 +33,12 @@ | |||
| 33 | <LocalDebuggerCommandArguments>-i</LocalDebuggerCommandArguments> | 33 | <LocalDebuggerCommandArguments>-i</LocalDebuggerCommandArguments> |
| 34 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> | 34 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> |
| 35 | </PropertyGroup> | 35 | </PropertyGroup> |
| 36 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'"> | ||
| 37 | <LocalDebuggerCommand>$(SolutionDir)..\LuaJIT-GIT\bin\$(Platform)\luajitgit.exe</LocalDebuggerCommand> | ||
| 38 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
| 39 | <LocalDebuggerCommandArguments>-i</LocalDebuggerCommandArguments> | ||
| 40 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> | ||
| 41 | </PropertyGroup> | ||
| 36 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> | 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> |
| 37 | <LocalDebuggerCommand>$(SolutionDir)..\framework\lua54.exe</LocalDebuggerCommand> | 43 | <LocalDebuggerCommand>$(SolutionDir)..\framework\lua54.exe</LocalDebuggerCommand> |
| 38 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | 44 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| @@ -70,6 +76,12 @@ | |||
| 70 | <LocalDebuggerCommandArguments>-i</LocalDebuggerCommandArguments> | 76 | <LocalDebuggerCommandArguments>-i</LocalDebuggerCommandArguments> |
| 71 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> | 77 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> |
| 72 | </PropertyGroup> | 78 | </PropertyGroup> |
| 79 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'"> | ||
| 80 | <LocalDebuggerCommand>$(SolutionDir)..\LuaJIT-2.0.5\bin\$(Platform)\luajit205.exe</LocalDebuggerCommand> | ||
| 81 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
| 82 | <LocalDebuggerCommandArguments>-i</LocalDebuggerCommandArguments> | ||
| 83 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> | ||
| 84 | </PropertyGroup> | ||
| 73 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'"> | 85 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'"> |
| 74 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> | 86 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes\lanes\deep_test\</LocalDebuggerWorkingDirectory> |
| 75 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | 87 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
diff --git a/unit_tests/UnitTests.vcxproj b/unit_tests/UnitTests.vcxproj index 7cdbafe..b911985 100644 --- a/unit_tests/UnitTests.vcxproj +++ b/unit_tests/UnitTests.vcxproj | |||
| @@ -29,6 +29,14 @@ | |||
| 29 | <Configuration>Debug 5.4</Configuration> | 29 | <Configuration>Debug 5.4</Configuration> |
| 30 | <Platform>Win32</Platform> | 30 | <Platform>Win32</Platform> |
| 31 | </ProjectConfiguration> | 31 | </ProjectConfiguration> |
| 32 | <ProjectConfiguration Include="Debug LuaJIT GIT|Win32"> | ||
| 33 | <Configuration>Debug LuaJIT GIT</Configuration> | ||
| 34 | <Platform>Win32</Platform> | ||
| 35 | </ProjectConfiguration> | ||
| 36 | <ProjectConfiguration Include="Debug LuaJIT GIT|x64"> | ||
| 37 | <Configuration>Debug LuaJIT GIT</Configuration> | ||
| 38 | <Platform>x64</Platform> | ||
| 39 | </ProjectConfiguration> | ||
| 32 | <ProjectConfiguration Include="Release 5.4|Win32"> | 40 | <ProjectConfiguration Include="Release 5.4|Win32"> |
| 33 | <Configuration>Release 5.4</Configuration> | 41 | <Configuration>Release 5.4</Configuration> |
| 34 | <Platform>Win32</Platform> | 42 | <Platform>Win32</Platform> |
| @@ -61,14 +69,18 @@ | |||
| 61 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 69 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 62 | </PropertyGroup> | 70 | </PropertyGroup> |
| 63 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'"> | 71 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'"> |
| 64 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 72 | <OutDir>$(SolutionDir)..\Lua53\bin\$(Platform)\Debug\</OutDir> |
| 65 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 73 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 66 | </PropertyGroup> | 74 | </PropertyGroup> |
| 67 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'"> | 75 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'"> |
| 68 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 76 | <OutDir>$(SolutionDir)..\Lua52\bin\$(Platform)\Debug\</OutDir> |
| 69 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 77 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 70 | </PropertyGroup> | 78 | </PropertyGroup> |
| 71 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'"> | 79 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'"> |
| 80 | <OutDir>$(SolutionDir)..\Lua51\bin\$(Platform)\Debug\</OutDir> | ||
| 81 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | ||
| 82 | </PropertyGroup> | ||
| 83 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'"> | ||
| 72 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> | 84 | <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> |
| 73 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 85 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 74 | </PropertyGroup> | 86 | </PropertyGroup> |
| @@ -92,6 +104,10 @@ | |||
| 92 | <OutDir>$(SolutionDir)..\Lua51\bin\$(Platform)\Debug\</OutDir> | 104 | <OutDir>$(SolutionDir)..\Lua51\bin\$(Platform)\Debug\</OutDir> |
| 93 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 105 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| 94 | </PropertyGroup> | 106 | </PropertyGroup> |
| 107 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'"> | ||
| 108 | <OutDir>$(SolutionDir)..\LuaJIT-GIT\bin\$(Platform)\</OutDir> | ||
| 109 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | ||
| 110 | </PropertyGroup> | ||
| 95 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'"> | 111 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'"> |
| 96 | <OutDir>E:\Boulot\anubis\Lua\framework\</OutDir> | 112 | <OutDir>E:\Boulot\anubis\Lua\framework\</OutDir> |
| 97 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> | 113 | <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> |
| @@ -169,6 +185,24 @@ | |||
| 169 | <AdditionalDependencies>lua51.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> | 185 | <AdditionalDependencies>lua51.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> |
| 170 | </Link> | 186 | </Link> |
| 171 | </ItemDefinitionGroup> | 187 | </ItemDefinitionGroup> |
| 188 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'"> | ||
| 189 | <ClCompile> | ||
| 190 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 191 | <PrecompiledHeaderFile>_pch.hpp</PrecompiledHeaderFile> | ||
| 192 | <Optimization>Disabled</Optimization> | ||
| 193 | <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 194 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
| 195 | <WarningLevel>Level3</WarningLevel> | ||
| 196 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-GIT\src;$(SolutionDir)Lanes</AdditionalIncludeDirectories> | ||
| 197 | <LanguageStandard>stdcpp20</LanguageStandard> | ||
| 198 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | ||
| 199 | </ClCompile> | ||
| 200 | <Link> | ||
| 201 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
| 202 | <SubSystem>Console</SubSystem> | ||
| 203 | <AdditionalDependencies>lua51.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> | ||
| 204 | </Link> | ||
| 205 | </ItemDefinitionGroup> | ||
| 172 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> | 206 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'"> |
| 173 | <ClCompile> | 207 | <ClCompile> |
| 174 | <PrecompiledHeader>Use</PrecompiledHeader> | 208 | <PrecompiledHeader>Use</PrecompiledHeader> |
| @@ -253,6 +287,27 @@ | |||
| 253 | </IgnoreSpecificDefaultLibraries> | 287 | </IgnoreSpecificDefaultLibraries> |
| 254 | </Link> | 288 | </Link> |
| 255 | </ItemDefinitionGroup> | 289 | </ItemDefinitionGroup> |
| 290 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'"> | ||
| 291 | <ClCompile> | ||
| 292 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 293 | <PrecompiledHeaderFile>_pch.hpp</PrecompiledHeaderFile> | ||
| 294 | <Optimization>Disabled</Optimization> | ||
| 295 | <PreprocessorDefinitions>X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 296 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
| 297 | <WarningLevel>Level3</WarningLevel> | ||
| 298 | <AdditionalIncludeDirectories>$(SolutionDir)..\LuaJIT-GIT\src;$(SolutionDir)Lanes</AdditionalIncludeDirectories> | ||
| 299 | <LanguageStandard>stdcpp20</LanguageStandard> | ||
| 300 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | ||
| 301 | </ClCompile> | ||
| 302 | <Link> | ||
| 303 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
| 304 | <SubSystem>Console</SubSystem> | ||
| 305 | <AdditionalLibraryDirectories>$(SolutionDir)..\LuaJIT-GIT\bin\$(Platform);$(SolutionDir)..\Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.7\lib\native\v140\windesktop\msvcstl\static\rt-dyn\x64\Debug</AdditionalLibraryDirectories> | ||
| 306 | <AdditionalDependencies>lua51.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> | ||
| 307 | <IgnoreSpecificDefaultLibraries> | ||
| 308 | </IgnoreSpecificDefaultLibraries> | ||
| 309 | </Link> | ||
| 310 | </ItemDefinitionGroup> | ||
| 256 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'"> | 311 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'"> |
| 257 | <ClCompile> | 312 | <ClCompile> |
| 258 | <PrecompiledHeader>Use</PrecompiledHeader> | 313 | <PrecompiledHeader>Use</PrecompiledHeader> |
| @@ -302,11 +357,13 @@ | |||
| 302 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">NotUsing</PrecompiledHeader> | 357 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">NotUsing</PrecompiledHeader> |
| 303 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'">NotUsing</PrecompiledHeader> | 358 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'">NotUsing</PrecompiledHeader> |
| 304 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'">NotUsing</PrecompiledHeader> | 359 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'">NotUsing</PrecompiledHeader> |
| 360 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'">NotUsing</PrecompiledHeader> | ||
| 305 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'">NotUsing</PrecompiledHeader> | 361 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'">NotUsing</PrecompiledHeader> |
| 306 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'">NotUsing</PrecompiledHeader> | 362 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'">NotUsing</PrecompiledHeader> |
| 307 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">NotUsing</PrecompiledHeader> | 363 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">NotUsing</PrecompiledHeader> |
| 308 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'">NotUsing</PrecompiledHeader> | 364 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'">NotUsing</PrecompiledHeader> |
| 309 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|x64'">NotUsing</PrecompiledHeader> | 365 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|x64'">NotUsing</PrecompiledHeader> |
| 366 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'">NotUsing</PrecompiledHeader> | ||
| 310 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'">NotUsing</PrecompiledHeader> | 367 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'">NotUsing</PrecompiledHeader> |
| 311 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'">NotUsing</PrecompiledHeader> | 368 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'">NotUsing</PrecompiledHeader> |
| 312 | </ClCompile> | 369 | </ClCompile> |
| @@ -315,11 +372,13 @@ | |||
| 315 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">NotUsing</PrecompiledHeader> | 372 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">NotUsing</PrecompiledHeader> |
| 316 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'">NotUsing</PrecompiledHeader> | 373 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'">NotUsing</PrecompiledHeader> |
| 317 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'">NotUsing</PrecompiledHeader> | 374 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'">NotUsing</PrecompiledHeader> |
| 375 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'">NotUsing</PrecompiledHeader> | ||
| 318 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'">NotUsing</PrecompiledHeader> | 376 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'">NotUsing</PrecompiledHeader> |
| 319 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'">NotUsing</PrecompiledHeader> | 377 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'">NotUsing</PrecompiledHeader> |
| 320 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">NotUsing</PrecompiledHeader> | 378 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">NotUsing</PrecompiledHeader> |
| 321 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'">NotUsing</PrecompiledHeader> | 379 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'">NotUsing</PrecompiledHeader> |
| 322 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|x64'">NotUsing</PrecompiledHeader> | 380 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|x64'">NotUsing</PrecompiledHeader> |
| 381 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'">NotUsing</PrecompiledHeader> | ||
| 323 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'">NotUsing</PrecompiledHeader> | 382 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'">NotUsing</PrecompiledHeader> |
| 324 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'">NotUsing</PrecompiledHeader> | 383 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'">NotUsing</PrecompiledHeader> |
| 325 | </ClCompile> | 384 | </ClCompile> |
| @@ -335,11 +394,13 @@ | |||
| 335 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">Create</PrecompiledHeader> | 394 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">Create</PrecompiledHeader> |
| 336 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'">Create</PrecompiledHeader> | 395 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'">Create</PrecompiledHeader> |
| 337 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'">Create</PrecompiledHeader> | 396 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|Win32'">Create</PrecompiledHeader> |
| 397 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'">Create</PrecompiledHeader> | ||
| 338 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'">Create</PrecompiledHeader> | 398 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'">Create</PrecompiledHeader> |
| 339 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'">Create</PrecompiledHeader> | 399 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'">Create</PrecompiledHeader> |
| 340 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">Create</PrecompiledHeader> | 400 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">Create</PrecompiledHeader> |
| 341 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'">Create</PrecompiledHeader> | 401 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'">Create</PrecompiledHeader> |
| 342 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|x64'">Create</PrecompiledHeader> | 402 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug 5.1|x64'">Create</PrecompiledHeader> |
| 403 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'">Create</PrecompiledHeader> | ||
| 343 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'">Create</PrecompiledHeader> | 404 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'">Create</PrecompiledHeader> |
| 344 | </ClCompile> | 405 | </ClCompile> |
| 345 | </ItemGroup> | 406 | </ItemGroup> |
diff --git a/unit_tests/UnitTests.vcxproj.user b/unit_tests/UnitTests.vcxproj.user index f9aae23..03c058f 100644 --- a/unit_tests/UnitTests.vcxproj.user +++ b/unit_tests/UnitTests.vcxproj.user | |||
| @@ -10,6 +10,10 @@ | |||
| 10 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> | 10 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> |
| 11 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | 11 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| 12 | </PropertyGroup> | 12 | </PropertyGroup> |
| 13 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|Win32'"> | ||
| 14 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> | ||
| 15 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
| 16 | </PropertyGroup> | ||
| 13 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'"> | 17 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|Win32'"> |
| 14 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> | 18 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> |
| 15 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | 19 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| @@ -32,6 +36,12 @@ | |||
| 32 | <LocalDebuggerCommandArguments /> | 36 | <LocalDebuggerCommandArguments /> |
| 33 | <RemoteDebuggerCommandArguments /> | 37 | <RemoteDebuggerCommandArguments /> |
| 34 | </PropertyGroup> | 38 | </PropertyGroup> |
| 39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug LuaJIT GIT|x64'"> | ||
| 40 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> | ||
| 41 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
| 42 | <LocalDebuggerCommandArguments /> | ||
| 43 | <RemoteDebuggerCommandArguments /> | ||
| 44 | </PropertyGroup> | ||
| 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'"> | 45 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.2|x64'"> |
| 36 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> | 46 | <LocalDebuggerWorkingDirectory>$(SolutionDir)Lanes</LocalDebuggerWorkingDirectory> |
| 37 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | 47 | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
diff --git a/unit_tests/init_and_shutdown.cpp b/unit_tests/init_and_shutdown.cpp index 147a742..7450a80 100644 --- a/unit_tests/init_and_shutdown.cpp +++ b/unit_tests/init_and_shutdown.cpp | |||
| @@ -150,7 +150,9 @@ TEST_CASE("lanes.configure") | |||
| 150 | }; | 150 | }; |
| 151 | lua_pushcfunction(L, _provideAllocator); | 151 | lua_pushcfunction(L, _provideAllocator); |
| 152 | lua_setglobal(L, "ProvideAllocator"); | 152 | lua_setglobal(L, "ProvideAllocator"); |
| 153 | L.requireFailure("require 'lanes'.configure{allocator = ProvideAllocator}"); | 153 | // force value of internal_allocator so that the LuaJIT-default 'libc' is not selected |
| 154 | // which would prevent us from calling _provideAllocator | ||
| 155 | L.requireFailure("require 'lanes'.configure{allocator = ProvideAllocator, internal_allocator = 'allocator'}"); | ||
| 154 | } | 156 | } |
| 155 | 157 | ||
| 156 | // ----------------------------------------------------------------------------------------- | 158 | // ----------------------------------------------------------------------------------------- |
| @@ -166,7 +168,9 @@ TEST_CASE("lanes.configure") | |||
| 166 | }; | 168 | }; |
| 167 | lua_pushcfunction(L, _provideAllocator); | 169 | lua_pushcfunction(L, _provideAllocator); |
| 168 | lua_setglobal(L, "ProvideAllocator"); | 170 | lua_setglobal(L, "ProvideAllocator"); |
| 169 | L.requireFailure("require 'lanes'.configure{allocator = ProvideAllocator}"); | 171 | // force value of internal_allocator so that the LuaJIT-default 'libc' is not selected |
| 172 | // which would prevent us from calling _provideAllocator | ||
| 173 | L.requireFailure("require 'lanes'.configure{allocator = ProvideAllocator, internal_allocator = 'allocator'}"); | ||
| 170 | } | 174 | } |
| 171 | 175 | ||
| 172 | // ----------------------------------------------------------------------------------------- | 176 | // ----------------------------------------------------------------------------------------- |
| @@ -183,7 +187,9 @@ TEST_CASE("lanes.configure") | |||
| 183 | }; | 187 | }; |
| 184 | lua_pushcfunction(L, _provideAllocator); | 188 | lua_pushcfunction(L, _provideAllocator); |
| 185 | lua_setglobal(L, "ProvideAllocator"); | 189 | lua_setglobal(L, "ProvideAllocator"); |
| 186 | L.requireFailure("require 'lanes'.configure{allocator = ProvideAllocator}"); | 190 | // force value of internal_allocator so that the LuaJIT-default 'libc' is not selected |
| 191 | // which would prevent us from calling _provideAllocator | ||
| 192 | L.requireFailure("require 'lanes'.configure{allocator = ProvideAllocator, internal_allocator = 'allocator'}"); | ||
| 187 | } | 193 | } |
| 188 | } | 194 | } |
| 189 | 195 | ||
diff --git a/unit_tests/lane_tests.cpp b/unit_tests/lane_tests.cpp index 63626ae..a6c6514 100644 --- a/unit_tests/lane_tests.cpp +++ b/unit_tests/lane_tests.cpp | |||
| @@ -261,10 +261,11 @@ TEST_CASE("scripted tests." #DIR "." #FILE) \ | |||
| 261 | _runner.performTest(FileRunnerParam{ #DIR "/" #FILE, TestType::CONDITION }); \ | 261 | _runner.performTest(FileRunnerParam{ #DIR "/" #FILE, TestType::CONDITION }); \ |
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | #if LUAJIT_FLAVOR() == 0 | ||
| 265 | MAKE_TEST_CASE(lane, cooperative_shutdown, AssertNoLuaError) | 264 | MAKE_TEST_CASE(lane, cooperative_shutdown, AssertNoLuaError) |
| 266 | #endif // LUAJIT_FLAVOR | 265 | #if LUAJIT_FLAVOR() == 0 |
| 266 | // TODO: for some reason, even though we throw as expected, the test fails with LuaJIT. To be investigated | ||
| 267 | MAKE_TEST_CASE(lane, uncooperative_shutdown, AssertThrows) | 267 | MAKE_TEST_CASE(lane, uncooperative_shutdown, AssertThrows) |
| 268 | #endif // LUAJIT_FLAVOR() | ||
| 268 | MAKE_TEST_CASE(lane, tasking_basic, AssertNoLuaError) | 269 | MAKE_TEST_CASE(lane, tasking_basic, AssertNoLuaError) |
| 269 | MAKE_TEST_CASE(lane, tasking_cancelling, AssertNoLuaError) | 270 | MAKE_TEST_CASE(lane, tasking_cancelling, AssertNoLuaError) |
| 270 | MAKE_TEST_CASE(lane, tasking_comms_criss_cross, AssertNoLuaError) | 271 | MAKE_TEST_CASE(lane, tasking_comms_criss_cross, AssertNoLuaError) |
diff --git a/unit_tests/scripts/lane/cooperative_shutdown.lua b/unit_tests/scripts/lane/cooperative_shutdown.lua index 2649079..1204e35 100644 --- a/unit_tests/scripts/lane/cooperative_shutdown.lua +++ b/unit_tests/scripts/lane/cooperative_shutdown.lua | |||
| @@ -3,6 +3,7 @@ local lanes = require "lanes" | |||
| 3 | -- launch lanes that cooperate properly with cancellation request | 3 | -- launch lanes that cooperate properly with cancellation request |
| 4 | 4 | ||
| 5 | local lane1 = function() | 5 | local lane1 = function() |
| 6 | lane_threadname("lane1") | ||
| 6 | -- loop breaks on cancellation request | 7 | -- loop breaks on cancellation request |
| 7 | repeat | 8 | repeat |
| 8 | lanes.sleep(0) | 9 | lanes.sleep(0) |
| @@ -11,6 +12,7 @@ local lane1 = function() | |||
| 11 | end | 12 | end |
| 12 | 13 | ||
| 13 | local lane2 = function(linda_) | 14 | local lane2 = function(linda_) |
| 15 | lane_threadname("lane2") | ||
| 14 | -- loop breaks on lane/linda cancellation | 16 | -- loop breaks on lane/linda cancellation |
| 15 | repeat | 17 | repeat |
| 16 | local k, v = linda_:receive('k') | 18 | local k, v = linda_:receive('k') |
| @@ -19,9 +21,11 @@ local lane2 = function(linda_) | |||
| 19 | end | 21 | end |
| 20 | 22 | ||
| 21 | local lane3 = function() | 23 | local lane3 = function() |
| 24 | lane_threadname("lane3") | ||
| 22 | -- this one cooperates too, because of the hook cancellation modes that Lanes will be using | 25 | -- this one cooperates too, because of the hook cancellation modes that Lanes will be using |
| 23 | -- but not with LuaJIT, because the function is compiled, and we don't call anyone, so no hook triggers | 26 | -- but not with LuaJIT, because the function is compiled, and we don't call anyone, so no hook triggers |
| 24 | repeat until false | 27 | local fixture = require "fixture" |
| 28 | repeat until fixture.give_me_back(false) | ||
| 25 | end | 29 | end |
| 26 | 30 | ||
| 27 | 31 | ||
diff --git a/unit_tests/shared.cpp b/unit_tests/shared.cpp index 023e917..0c9516f 100644 --- a/unit_tests/shared.cpp +++ b/unit_tests/shared.cpp | |||
| @@ -52,6 +52,11 @@ namespace | |||
| 52 | return 0; | 52 | return 0; |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | // a function that returns immediately (so that LuaJIT issues a function call for it) | ||
| 56 | lua_CFunction sGiveMeBack = +[](lua_State* L_) { | ||
| 57 | return lua_gettop(L_); | ||
| 58 | }; | ||
| 59 | |||
| 55 | lua_CFunction sNewLightUserData = +[](lua_State* const L_) { | 60 | lua_CFunction sNewLightUserData = +[](lua_State* const L_) { |
| 56 | lua_pushlightuserdata(L_, std::bit_cast<void*>(static_cast<uintptr_t>(42))); | 61 | lua_pushlightuserdata(L_, std::bit_cast<void*>(static_cast<uintptr_t>(42))); |
| 57 | return 1; | 62 | return 1; |
| @@ -71,8 +76,9 @@ namespace | |||
| 71 | 76 | ||
| 72 | static luaL_Reg const sFixture[] = { | 77 | static luaL_Reg const sFixture[] = { |
| 73 | { "forever", sForever }, | 78 | { "forever", sForever }, |
| 79 | { "give_me_back()", sGiveMeBack }, | ||
| 74 | { "newlightuserdata", sNewLightUserData }, | 80 | { "newlightuserdata", sNewLightUserData }, |
| 75 | { "newuserdata", sNewUserData }, | 81 | { "newuserdata", sNewUserData }, |
| 76 | { "on_state_create", sOnStateCreate }, | 82 | { "on_state_create", sOnStateCreate }, |
| 77 | { "throwing_finalizer", sThrowingFinalizer }, | 83 | { "throwing_finalizer", sThrowingFinalizer }, |
| 78 | { "yielding_finalizer", sYieldingFinalizer }, | 84 | { "yielding_finalizer", sYieldingFinalizer }, |
| @@ -163,7 +169,15 @@ LuaState::LuaState(WithBaseLibs const withBaseLibs_, WithFixture const withFixtu | |||
| 163 | STACK_CHECK_START_REL(L, 0); | 169 | STACK_CHECK_START_REL(L, 0); |
| 164 | if (withBaseLibs_) { | 170 | if (withBaseLibs_) { |
| 165 | luaL_openlibs(L); | 171 | luaL_openlibs(L); |
| 172 | } else { | ||
| 173 | #if LUAJIT_FLAVOR() | ||
| 174 | // lanes.core relies on the presence of jit to detect LuaJIT/PUC-Lua mismatches | ||
| 175 | luaL_requiref(L, LUA_JITLIBNAME, luaopen_jit, 1); | ||
| 176 | lua_pop(L, 1); | ||
| 177 | #endif // LUAJIT_FLAVOR | ||
| 166 | } | 178 | } |
| 179 | |||
| 180 | |||
| 167 | if (withFixture_) { | 181 | if (withFixture_) { |
| 168 | // make require "fixture" call luaopen_fixture | 182 | // make require "fixture" call luaopen_fixture |
| 169 | local::PreloadModule(L, "fixture", luaopen_fixture); | 183 | local::PreloadModule(L, "fixture", luaopen_fixture); |
