mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed some references to CheckAssertError during comptime
This commit is contained in:
parent
7ca654aab1
commit
abb4778187
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ namespace System.Diagnostics
|
||||||
{
|
{
|
||||||
if (!condition)
|
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;
|
return;
|
||||||
#if !BF_RUNTIME_REDUCED
|
#if !BF_RUNTIME_REDUCED
|
||||||
String failStr = scope .()..Append("Assert failed: ", error, " at line ");
|
String failStr = scope .()..Append("Assert failed: ", error, " at line ");
|
||||||
|
|
|
@ -437,7 +437,7 @@ namespace System
|
||||||
{
|
{
|
||||||
if (!condition)
|
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;
|
return;
|
||||||
#if !BF_RUNTIME_REDUCED
|
#if !BF_RUNTIME_REDUCED
|
||||||
String failStr = scope .()..Append("Assert failed: ", error, " at line ");
|
String failStr = scope .()..Append("Assert failed: ", error, " at line ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue