mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
0a97b8ae25
Has been removed from framework
22 lines
673 B
C#
22 lines
673 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
namespace osu.Game.Utils
|
|
{
|
|
public static class DebugUtils
|
|
{
|
|
public static bool IsDebug
|
|
{
|
|
get
|
|
{
|
|
// ReSharper disable once RedundantAssignment
|
|
bool isDebug = false;
|
|
// Debug.Assert conditions are only evaluated in debug mode
|
|
System.Diagnostics.Debug.Assert(isDebug = true);
|
|
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
|
|
return isDebug;
|
|
}
|
|
}
|
|
}
|
|
}
|