From ffa83efbb604ba2ed921e86bc6c837f6d605faa2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 20 May 2024 12:54:15 -0400 Subject: Stop using %m --- tests/tests.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/tests.h') diff --git a/tests/tests.h b/tests/tests.h index 19b7f5e..de95a49 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -9,6 +9,7 @@ #define BFS_TESTS_H #include "prelude.h" +#include "bfstd.h" #include "diag.h" /** Unit test function type. */ @@ -61,7 +62,7 @@ static inline bool bfs_check(bool ret) { * Check a condition, logging the current error string on failure. */ #define bfs_echeck(...) \ - bfs_echeck_(#__VA_ARGS__, __VA_ARGS__, "", bfs_errstr()) + bfs_echeck_(#__VA_ARGS__, __VA_ARGS__, "", errstr()) #define bfs_echeck_(str, cond, format, ...) \ ((cond) ? true : (bfs_diag( \ -- cgit v1.2.3