Files
Test-Multiplayer/Library/PackageCache/com.unity.shadergraph@2c9221ffedf4/Editor/Util/AssertHelpers.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02: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
}
}
}