mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
KeePassLib finally portable (but version 2.19)
Windows Store project stub
This commit is contained in:
30
ModernKeePassLib/DebugAssert.cs
Normal file
30
ModernKeePassLib/DebugAssert.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user