test: write newline before check() failure message
This commit is contained in:
parent
065fee7b29
commit
b895c1866e
@ -20,7 +20,8 @@ void no_inline no_return check_fail(const char* message);
|
|||||||
|
|
||||||
#define check(expression) \
|
#define check(expression) \
|
||||||
(void) ((!!(expression)) || \
|
(void) ((!!(expression)) || \
|
||||||
(check_fail("Check failed:\n" \
|
(check_fail("\n" \
|
||||||
|
"Check failed:\n" \
|
||||||
" test: " #expression "\n" \
|
" test: " #expression "\n" \
|
||||||
" file: " __FILE__ "\n" \
|
" file: " __FILE__ "\n" \
|
||||||
" line: " __check_to_string(__LINE__) "\n"), \
|
" line: " __check_to_string(__LINE__) "\n"), \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user