mathe/Library/PackageCache/com.unity.shadergraph@14.0.8/Editor/Util/AssertHelpers.cs

22 lines
427 B
C#
Raw Normal View History

2024-09-20 20:30:10 +02:00
using UnityEngine.Assertions;
namespace UnityEditor.ShaderGraph
{
static class AssertHelpers
{
public static void IsNotNull(object anObject, string message)
{
#if SG_ASSERTIONS
Assert.IsNotNull(anObject, message);
#endif
}
public static void Fail(string message)
{
#if SG_ASSERTIONS
throw new AssertionException(message, null);
#endif
}
}
}