|
@@ -19,7 +19,6 @@ __BEGIN_DECLS
|
|
if (__builtin_expect(!(expr), 0)) \
|
|
if (__builtin_expect(!(expr), 0)) \
|
|
__assertion_failed(#expr "\n" __FILE__ ":" __stringify(__LINE__)); \
|
|
__assertion_failed(#expr "\n" __FILE__ ":" __stringify(__LINE__)); \
|
|
} while (0)
|
|
} while (0)
|
|
-# define VERIFY_NOT_REACHED() assert(false)
|
|
|
|
#else
|
|
#else
|
|
# define assert(expr) ((void)(0))
|
|
# define assert(expr) ((void)(0))
|
|
# define VERIFY_NOT_REACHED() _abort()
|
|
# define VERIFY_NOT_REACHED() _abort()
|
|
@@ -27,9 +26,6 @@ __BEGIN_DECLS
|
|
|
|
|
|
[[noreturn]] void _abort();
|
|
[[noreturn]] void _abort();
|
|
|
|
|
|
-#define VERIFY assert
|
|
|
|
-#define TODO VERIFY_NOT_REACHED
|
|
|
|
-
|
|
|
|
#ifndef __cplusplus
|
|
#ifndef __cplusplus
|
|
# define static_assert _Static_assert
|
|
# define static_assert _Static_assert
|
|
#endif
|
|
#endif
|