* @file
* @brief Error handling for libFirm
* @author Michael Beck
- * @version $Id$
*/
#ifndef FIRM_COMMON_ERROR_H
#define FIRM_COMMON_ERROR_H
/**
* Prints a panic message to stderr and exits.
*/
-NORETURN panic(const char *fmt, ...);
+NORETURN panic(char const *file, int line, char const *func, char const *fmt, ...);
+
+#define panic(...) panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
# endif