Skip to content

Commit

Permalink
Undo VS damage
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Aug 12, 2021
1 parent ef17f53 commit da958a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Shared.Core/KoikatuAPIBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,14 @@ public static void SynchronizedInvoke(Action action)
{
ThreadingHelper.Instance.StartSyncInvoke(action);
}

//[System.Diagnostics.Conditional("DEBUG")]
internal static void Assert(bool success, string error)
{
if (success) return;
//todo uncomment? or keep commented for easier future debugging?
//if (!EnableDebugLogging) return;
Logger.LogWarning("Assertion failed: " + error + "\nat: " + new System.Diagnostics.StackTrace(1));
}
}
}

0 comments on commit da958a7

Please sign in to comment.