diff options
Diffstat (limited to 'include/util.h')
-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) |