Skip to content

Commit cb3669a

Browse files
committed
Simplify macros to use new optional arguments for passing location
1 parent 39bf202 commit cb3669a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/assert_macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#endif
2222

2323
#if ASSERTIONS
24-
# define call_assert(assertion) call assert_always(assertion, "call_assert(" // CPP_STRINGIFY_SOURCE(assertion) // ") in file " // __FILE__ // ", line " // fortran_stringify_integer(__LINE__))
25-
# define call_assert_describe(assertion, description) call assert_always(assertion, description // " in file " // __FILE__ // ", line " // fortran_stringify_integer(__LINE__))
24+
# define call_assert(assertion) call assert_always(assertion, "call_assert(" // CPP_STRINGIFY_SOURCE(assertion) // ")", __FILE__, __LINE__)
25+
# define call_assert_describe(assertion, description) call assert_always(assertion, description, __FILE__, __LINE__)
2626
#else
2727
# define call_assert(assertion)
2828
# define call_assert_describe(assertion, description)

0 commit comments

Comments
 (0)