WuhuIslandTesting/Library/PackageCache/com.unity.shadergraph@8148.12.1-8/Editor/Util/AssertHelpers.cs
2025-01-07 02:06:59 +01:00

21 lines
427 B
C#

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
}
}
}