mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
31 lines
593 B
C#
31 lines
593 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Diagnostics;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ModernKeePassLib
|
|||
|
{
|
|||
|
public class Debug
|
|||
|
{
|
|||
|
[Conditional("DEBUG")]
|
|||
|
public static void Assert(bool condition, string why)
|
|||
|
{
|
|||
|
if (!condition)
|
|||
|
System.Diagnostics.Debugger.Break();
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[Conditional("DEBUG")]
|
|||
|
public static void Assert(bool condition)
|
|||
|
{
|
|||
|
if (!condition)
|
|||
|
System.Diagnostics.Debugger.Break();
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|