From 98ab574f51a223bbd53052ded32dce6aebca9298 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 21 Dec 2021 01:10:53 -0600 Subject: refactor: lily_assert -> lily_assert_msg --- src/lily-test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lily-test.h') diff --git a/src/lily-test.h b/src/lily-test.h index e8faf54..9f166b1 100644 --- a/src/lily-test.h +++ b/src/lily-test.h @@ -19,14 +19,14 @@ struct lily_test_data_t { // assertion macros #define lily_indent " " -#define lily_assert(statement, message) \ +#define lily_assert_msg(statement, message) \ do { \ if (!(statement)) \ return "" message \ "\n" lily_indent " [" __FILE__ ":" STR(__LINE__) "]"; \ } while(0) -#define lily_assert_equal(a, b) lily_assert((a) == (b), "'" #a "' is not equal to '" #b "'") +#define lily_assert_equal(a, b) lily_assert_msg((a) == (b), "'" #a "' is not equal to '" #b "'") #endif -- cgit v1.2.1