author | Tero Marttila <terom@fixme.fi> |
Sat, 11 Oct 2008 21:23:03 +0300 | |
changeset 19 | c4b163491900 |
parent 11 | a4e382d4a22a |
child 24 | 82cfdb6680d1 |
permissions | -rw-r--r-- |
#ifndef LIB_ERROR_H #define LIB_ERROR_H #include "log.h" #define ERROR(...) do { err_func(__func__, __VA_ARGS__); goto error; } while (0) #define PERROR(...) do { perr_func(__func__, __VA_ARGS__); goto error; } while (0) #define EERROR(_err, ...) do { eerr_func(__func__, (_err), __VA_ARGS__); goto error; } while (0) #define FATAL(...) err_func_exit(__func__, __VA_ARGS__) #define PFATAL(...) perr_func_exit(__func__, __VA_ARGS__) #endif /* LIB_ERROR_H */