Merge branch 'master' into feature/pathparams
This commit is contained in:
commit
7a516668bf
|
|
@ -1,9 +1,12 @@
|
||||||
global using static SimpleHttpServer.GlobalUsings;
|
global using static SimpleHttpServer.GlobalUsings;
|
||||||
using SimpleHttpServer.Types.Exceptions;
|
using SimpleHttpServer.Types.Exceptions;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace SimpleHttpServer;
|
namespace SimpleHttpServer;
|
||||||
internal static class GlobalUsings {
|
internal static class GlobalUsings {
|
||||||
|
|
||||||
|
[DebuggerHidden]
|
||||||
internal static void Assert([DoesNotReturnIf(false)] bool b, string? message = null) {
|
internal static void Assert([DoesNotReturnIf(false)] bool b, string? message = null) {
|
||||||
if (!b) {
|
if (!b) {
|
||||||
if (message == null)
|
if (message == null)
|
||||||
|
|
@ -13,5 +16,6 @@ internal static class GlobalUsings {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DebuggerHidden]
|
||||||
internal static void AssertImplies(bool x, bool y, string? message = null) => Assert(!x || y, message);
|
internal static void AssertImplies(bool x, bool y, string? message = null) => Assert(!x || y, message);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user