src/lib/error.h
author Tero Marttila <terom@fixme.fi>
Fri, 26 Sep 2008 21:13:35 +0300
changeset 8 21bb5cdca4db
child 11 a4e382d4a22a
permissions -rw-r--r--
working simple_readdir
#ifndef LIB_ERROR_H
#define LIB_ERROR_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)

#endif /* LIB_ERROR_H */