/* * Basic perror + exit routines. * * Contributed by Benjamin Hindman , 2008. */ #ifndef FATAL_HPP #define FATAL_HPP #include #include #include /* * Like the non-debug version except includes the file name and line * number in the output. */ #define fatal(fmt...) __fatal(__FILE__, __LINE__, fmt) void __fatal(const char *file, int line, const char *fmt, ...); /* * Like the non-debug version except includes the file name and line * number in the output. */ #define fatalerror(fmt...) __fatalerror(__FILE__, __LINE__, fmt) void __fatalerror(const char *file, int line, const char *fmt, ...); #endif /* FATAL_HPP */