JD2022-TU1/main/tools/framework/JD.TeaBoxAddinSystem/Addins/Default/DebugConditionNode.cs

17 lines
385 B
C#

namespace JD.TeaBoxAddinSystem.Addins.Default
{
/// <summary>
/// A condition node that evaluates to true if this library was compiled with the Debug flag.
/// </summary>
internal class DebugConditionNode : ConditionNode
{
public override bool Evaluate()
{
#if DEBUG
return true;
#else
return false;
#endif
}
}
}