diff options
author | 2023-05-10 18:17:18 +0200 | |
---|---|---|
committer | 2023-05-10 18:17:18 +0200 | |
commit | 4014dbbc7e61e20f7edbab9ed447c48a7d2ef695 (patch) | |
tree | b4298a683a78a0649dc02d1fe88204d89b964bd4 /test/test_list.c | |
parent | 03798ebc89704aaf45b3e3ae3cac5d7a14c346f5 (diff) | |
download | utils-4014dbbc7e61e20f7edbab9ed447c48a7d2ef695.tar.gz utils-4014dbbc7e61e20f7edbab9ed447c48a7d2ef695.zip |
Add the filename when assert fails
Diffstat (limited to 'test/test_list.c')
-rw-r--r-- | test/test_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_list.c b/test/test_list.c index d56ad6b..949bff2 100644 --- a/test/test_list.c +++ b/test/test_list.c @@ -22,7 +22,7 @@ #include <string.h> #include <utils.h> -#define assert(c) if (c == 0) { printf("%d", __LINE__); exit(1);} +#define assert(c) if (c == 0) { printf("%s:%d\n", __FILE__, __LINE__); exit(1);} #define log(str) printf("%s: %s\n", __func__, str); void |