Index: src/sksl/SkSLUtil.h |
diff --git a/src/sksl/SkSLUtil.h b/src/sksl/SkSLUtil.h |
index c648152bf2183543941045980d7430451de12231..ede21830e564eae9a12c1375184f0d05b28eeaba 100644 |
--- a/src/sksl/SkSLUtil.h |
+++ b/src/sksl/SkSLUtil.h |
@@ -100,8 +100,13 @@ |
} // namespace |
-#define ASSERT(x) SkASSERT(x) |
-#define ASSERT_RESULT(x) SkAssertResult(x); |
+#ifdef DEBUG |
+#define ASSERT(x) assert(x) |
+#define ASSERT_RESULT(x) ASSERT(x); |
+#else |
+#define ASSERT(x) |
+#define ASSERT_RESULT(x) x |
+#endif |
#ifdef SKIA |
#define ABORT(...) { SkDebugf(__VA_ARGS__); sksl_abort(); } |