feat(debug): add assert_ne (not equal) macro
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d7ed1560a9
commit
24c173a519
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ Author: Leonardo de Moura
|
|||
#define lean_cond_assert(TAG, COND, ARGS...) DEBUG_CODE({if (lean::is_debug_enabled(TAG) && !(COND)) { lean::notify_assertion_violation(__FILE__, __LINE__, #COND); LEAN_DISPLAY(ARGS); lean::invoke_debugger(); }})
|
||||
|
||||
#define lean_assert_eq(A, B) lean_assert(A == B, A, B)
|
||||
#define lean_assert_ne(A, B) lean_assert(A != B, A, B)
|
||||
#define lean_assert_gt(A, B) lean_assert(A > B, A, B)
|
||||
#define lean_assert_lt(A, B) lean_assert(A < B, A, B)
|
||||
#define lean_assert_ge(A, B) lean_assert(A >= B, A, B)
|
||||
|
|
Loading…
Reference in a new issue