Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Editor/Util/AssertHelpers.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -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
}
}
}