StellarXipher/Library/PackageCache/com.unity.shadergraph@d57efd43b1c1/Editor/Util/AssertHelpers.cs
2025-02-06 16:45:46 -05:00

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