You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
427 B
21 lines
427 B
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
|
|
}
|
|
}
|
|
}
|