Brak opisu
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.

AssertHelpers.cs 427B

123456789101112131415161718192021
  1. using UnityEngine.Assertions;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. static class AssertHelpers
  5. {
  6. public static void IsNotNull(object anObject, string message)
  7. {
  8. #if SG_ASSERTIONS
  9. Assert.IsNotNull(anObject, message);
  10. #endif
  11. }
  12. public static void Fail(string message)
  13. {
  14. #if SG_ASSERTIONS
  15. throw new AssertionException(message, null);
  16. #endif
  17. }
  18. }
  19. }