equal
deleted
inserted
replaced
6 #define ERROR(...) do { err_func(__func__, __VA_ARGS__); goto error; } while (0) |
6 #define ERROR(...) do { err_func(__func__, __VA_ARGS__); goto error; } while (0) |
7 #define PERROR(...) do { perr_func(__func__, __VA_ARGS__); goto error; } while (0) |
7 #define PERROR(...) do { perr_func(__func__, __VA_ARGS__); goto error; } while (0) |
8 #define EERROR(_err, ...) do { eerr_func(__func__, (_err), __VA_ARGS__); goto error; } while (0) |
8 #define EERROR(_err, ...) do { eerr_func(__func__, (_err), __VA_ARGS__); goto error; } while (0) |
9 #define NERROR(...) do { err_func_nonl(__func__, __VA_ARGS__); goto error; } while (0) |
9 #define NERROR(...) do { err_func_nonl(__func__, __VA_ARGS__); goto error; } while (0) |
10 |
10 |
|
11 // XXX: replace with *err_func(...) + exit(EXIT_FAILURE) |
11 #define FATAL(...) err_func_exit(__func__, __VA_ARGS__) |
12 #define FATAL(...) err_func_exit(__func__, __VA_ARGS__) |
12 #define PFATAL(...) perr_func_exit(__func__, __VA_ARGS__) |
13 #define PFATAL(...) perr_func_exit(__func__, __VA_ARGS__) |
|
14 #define EFATAL(_err, ...) eerr_func_exit(__func__, (_err), __VA_ARGS__) |
13 |
15 |
14 #endif /* LIB_ERROR_H */ |
16 #endif /* LIB_ERROR_H */ |