src/lib/error.h
changeset 28 e944453ca924
parent 24 82cfdb6680d1
child 33 c71f3053c714
--- a/src/lib/error.h	Mon Oct 13 02:27:59 2008 +0300
+++ b/src/lib/error.h	Wed Oct 15 01:14:22 2008 +0300
@@ -8,7 +8,9 @@
 #define EERROR(_err, ...) do { eerr_func(__func__, (_err), __VA_ARGS__); goto error; } while (0)
 #define NERROR(...) do { err_func_nonl(__func__, __VA_ARGS__); goto error; } while (0)
 
+// XXX: replace with *err_func(...) + exit(EXIT_FAILURE)
 #define FATAL(...) err_func_exit(__func__, __VA_ARGS__)
 #define PFATAL(...) perr_func_exit(__func__, __VA_ARGS__)
+#define EFATAL(_err, ...) eerr_func_exit(__func__, (_err), __VA_ARGS__)
 
 #endif /* LIB_ERROR_H */