Skip to content

Commit

Permalink
Overrflow and underflow checking only whilst in Debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
smabuk committed Dec 10, 2024
1 parent 229f327 commit 984316d
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Solutions/2015/AdventOfCode.Solutions.2015.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2015</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion Solutions/2016/AdventOfCode.Solutions.2016.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2016</RootNamespace>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<PublishAot>True</PublishAot>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
<Using Static="true" Include="Smab.Helpers.ArgumentHelpers" />
Expand Down
9 changes: 8 additions & 1 deletion Solutions/2017/AdventOfCode.Solutions.2017.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2017</RootNamespace>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<PublishAot>True</PublishAot>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
<Using Static="true" Include="Smab.Helpers.ArgumentHelpers" />
Expand Down
7 changes: 7 additions & 0 deletions Solutions/2018/AdventOfCode.Solutions.2018.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2018</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions Solutions/2019/AdventOfCode.Solutions.2019.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2019</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions Solutions/2020/AdventOfCode.Solutions.2020.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2020</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions Solutions/2021/AdventOfCode.Solutions.2021.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2021</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions Solutions/2022/AdventOfCode.Solutions.2022.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2022</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion Solutions/2023/AdventOfCode.Solutions.2023.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2023</RootNamespace>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<PublishAot>True</PublishAot>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
</ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion Solutions/2024/AdventOfCode.Solutions.2024.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

<PropertyGroup>
<RootNamespace>AdventOfCode.Solutions._2024</RootNamespace>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<PublishAot>True</PublishAot>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Smab.Helpers" />
<Using Static="true" Include="Smab.Helpers.ArgumentHelpers" />
Expand Down

0 comments on commit 984316d

Please sign in to comment.