Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Jan 30, 2023
1 parent 0f59aa4 commit 62feeae
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BUTR.NativeAOT.Shared.Source" Version="1.0.16" GeneratePathProperty="true" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="BUTR.NativeAOT.Shared.Source" Version="1.0.24" GeneratePathProperty="true" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>

<Target Name="CopyHeaders" AfterTargets="AfterBuild">
Expand Down
20 changes: 10 additions & 10 deletions src/FetchBannerlordVersion.Native/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ public static void LogInput(nuint param1, [CallerMemberName] string? caller = nu
}
[Conditional("LOGGING")]
public static unsafe void LogInput<T1>(T1* param1, [CallerMemberName] string? caller = null)
where T1 : unmanaged, IParameter<T1>
where T1 : unmanaged, IParameterWithSpan<T1>
{
Log($"Received call to {caller}! {T1.ToSpan(param1)}");
}
[Conditional("LOGGING")]
public static unsafe void LogInput<T1, T2>(T1* param1, T2* param2, [CallerMemberName] string? caller = null)
where T1 : unmanaged, IParameter<T1>
where T2 : unmanaged, IParameter<T2>
where T1 : unmanaged, IParameterWithSpan<T1>
where T2 : unmanaged, IParameterWithSpan<T2>
{
Log($"Received call to {caller}! {T1.ToSpan(param1)}; {T2.ToSpan(param2)}");
}
[Conditional("LOGGING")]
public static unsafe void LogInput<T1, T2, T3>(T1* param1, T2* param2, T3* param3, [CallerMemberName] string? caller = null)
where T1 : unmanaged, IParameter<T1>
where T2 : unmanaged, IParameter<T2>
where T3 : unmanaged, IParameter<T3>
where T1 : unmanaged, IParameterWithSpan<T1>
where T2 : unmanaged, IParameterWithSpan<T2>
where T3 : unmanaged, IParameterWithSpan<T3>
{
Log($"Received call to {caller}! {T1.ToSpan(param1)}; {T2.ToSpan(param2)}; {T3.ToSpan(param3)}");
}
[Conditional("LOGGING")]
public static unsafe void LogInput<T1, T2, T3, T4>(T1* param1, T2* param2, T3* param3, T4* param4, [CallerMemberName] string? caller = null)
where T1 : unmanaged, IParameter<T1>
where T2 : unmanaged, IParameter<T2>
where T3 : unmanaged, IParameter<T3>
where T4 : unmanaged, IParameter<T4>
where T1 : unmanaged, IParameterWithSpan<T1>
where T2 : unmanaged, IParameterWithSpan<T2>
where T3 : unmanaged, IParameterWithSpan<T3>
where T4 : unmanaged, IParameterWithSpan<T4>
{
Log($"Received call to {caller}! {T1.ToSpan(param1)}; {T2.ToSpan(param2)}; {T3.ToSpan(param3)}; {T4.ToSpan(param4)}");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="System.Reflection.Metadata" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/FetchBannerlordVersion/FetchBannerlordVersion.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Reflection.Metadata" Version="6.0.1" />
<PackageReference Include="System.Reflection.Metadata" Version="7.0.0" />
</ItemGroup>

<Target Name="SetReflectionFree">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BUTR.NativeAOT.Shared.Source" Version="1.0.18" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="BUTR.NativeAOT.Shared.Source" Version="1.0.25" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
Expand Down

0 comments on commit 62feeae

Please sign in to comment.