| Index: runtime/platform/assert.h
|
| diff --git a/runtime/platform/assert.h b/runtime/platform/assert.h
|
| index a60d85d5fa4d1879ae23f03b80fd7b0badb523c2..9d6d67c0a4a402aa58bcbf761ca652931c6b4638 100644
|
| --- a/runtime/platform/assert.h
|
| +++ b/runtime/platform/assert.h
|
| @@ -281,6 +281,12 @@ T DynamicAssertionHelper::NotNull(const T p) {
|
| #endif // if defined(DEBUG)
|
|
|
|
|
| +#define RELEASE_ASSERT(cond) \
|
| + do { \
|
| + if (!(cond)) dart::Assert(__FILE__, __LINE__).Fail("expected: %s", #cond); \
|
| + } while (false)
|
| +
|
| +
|
| // The COMPILE_ASSERT macro can be used to verify that a compile time
|
| // expression is true. For example, you could use it to verify the
|
| // size of a static array:
|
|
|