Sync more code with ArchiBoT

This commit is contained in:
JustArchi
2016-01-02 17:31:55 +01:00
parent 70b7f9d5dd
commit cd460c5ec5
4 changed files with 30 additions and 36 deletions

View File

@@ -22,20 +22,14 @@
*/
using System.Diagnostics;
namespace ArchiSteamFarm {
internal static class Debugging {
internal static bool IsDebugBuild { get; private set; } = false;
#if DEBUG
internal static readonly bool IsDebugBuild = true;
#else
internal static readonly bool IsDebugBuild = false;
#endif
internal static bool IsReleaseBuild { get { return !IsDebugBuild; } }
static Debugging() {
MarkIfDebug();
}
[Conditional("DEBUG")]
private static void MarkIfDebug() {
IsDebugBuild = true;
}
}
}