From abb4778187e496cdca88c8fa0b73f43d2e8bdd69 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 2 Dec 2024 12:15:01 -0500 Subject: [PATCH] Fixed some references to CheckAssertError during comptime --- BeefLibs/corlib/src/Diagnostics/Debug.bf | 2 +- BeefLibs/corlib/src/Runtime.bf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Diagnostics/Debug.bf b/BeefLibs/corlib/src/Diagnostics/Debug.bf index 6ed87ebb..dd4bb851 100644 --- a/BeefLibs/corlib/src/Diagnostics/Debug.bf +++ b/BeefLibs/corlib/src/Diagnostics/Debug.bf @@ -9,7 +9,7 @@ namespace System.Diagnostics { if (!condition) { - if ((Runtime.CheckAssertError != null) && (Runtime.CheckAssertError(.Debug, error, filePath, line) == .Ignore)) + if ((!Compiler.IsComptime) && (Runtime.CheckAssertError != null) && (Runtime.CheckAssertError(.Debug, error, filePath, line) == .Ignore)) return; #if !BF_RUNTIME_REDUCED String failStr = scope .()..Append("Assert failed: ", error, " at line "); diff --git a/BeefLibs/corlib/src/Runtime.bf b/BeefLibs/corlib/src/Runtime.bf index 520a6319..aecc2d2e 100644 --- a/BeefLibs/corlib/src/Runtime.bf +++ b/BeefLibs/corlib/src/Runtime.bf @@ -437,7 +437,7 @@ namespace System { if (!condition) { - if ((Runtime.CheckAssertError != null) && (Runtime.CheckAssertError(.Runtime, error, filePath, line) == .Ignore)) + if ((!Compiler.IsComptime) && (Runtime.CheckAssertError != null) && (Runtime.CheckAssertError(.Runtime, error, filePath, line) == .Ignore)) return; #if !BF_RUNTIME_REDUCED String failStr = scope .()..Append("Assert failed: ", error, " at line ");