src/lib/error.h
changeset 33 c71f3053c714
parent 28 e944453ca924
child 36 56427f22e969
--- a/src/lib/error.h	Fri Oct 17 16:09:35 2008 +0300
+++ b/src/lib/error.h	Fri Oct 17 18:53:05 2008 +0300
@@ -7,6 +7,7 @@
 #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 NERROR(...) do { err_func_nonl(__func__, __VA_ARGS__); goto error; } while (0)
+#define SERROR(_err) do { (_err); goto error; } while (0)
 
 // XXX: replace with *err_func(...) + exit(EXIT_FAILURE)
 #define FATAL(...) err_func_exit(__func__, __VA_ARGS__)