| author | Tero Marttila <terom@fixme.fi> |
| Sat, 11 Oct 2008 21:35:48 +0300 | |
| changeset 20 | f0ef6d8880b4 |
| parent 11 | a4e382d4a22a |
| child 24 | 82cfdb6680d1 |
| permissions | -rw-r--r-- |
| 8 | 1 |
#ifndef LIB_ERROR_H |
2 |
#define LIB_ERROR_H |
|
3 |
||
| 11 | 4 |
#include "log.h" |
5 |
||
| 8 | 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)
|
|
8 |
#define EERROR(_err, ...) do { eerr_func(__func__, (_err), __VA_ARGS__); goto error; } while (0)
|
|
9 |
||
| 11 | 10 |
#define FATAL(...) err_func_exit(__func__, __VA_ARGS__) |
11 |
#define PFATAL(...) perr_func_exit(__func__, __VA_ARGS__) |
|
12 |
||
| 8 | 13 |
#endif /* LIB_ERROR_H */ |