diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-04-17 10:12:12 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-04-17 10:13:31 +0530 |
commit | 47166b41e05090c595de633c67dfe8ae4cb19bc0 (patch) | |
tree | 1be25cb9e73900fdb06861b70c666086c29c7d28 /include | |
parent | a6a49587035a29df9ad2401e47cffd9fb51e9ba3 (diff) |
c: rename error reporting marcos
Diffstat (limited to 'include')
-rw-r--r-- | include/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/util.h b/include/util.h index ca4e6d8..2f1c341 100644 --- a/include/util.h +++ b/include/util.h @@ -1,10 +1,10 @@ #include <stdio.h> -#define err_print(fmt, ...) \ +#define print_err(fmt, ...) \ fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__) -#define err_ret(r, fmt, ...) \ +#define return_err(r, fmt, ...) \ do { \ - err_print(fmt, ##__VA_ARGS__); \ + print_err(fmt, ##__VA_ARGS__); \ return r; \ } while (0) |