X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fcommon%2Ferror.h;h=e63de687e4d44a0a5804fbafcbcdc46bbbc6bcf0;hb=ad04ca468b29491e0e82bf0b11dda4f8114468a2;hp=cec26436a010043f0a98dd8ab023fb3f2f5cbdc0;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/common/error.h b/ir/common/error.h index cec26436a..e63de687e 100644 --- a/ir/common/error.h +++ b/ir/common/error.h @@ -21,7 +21,6 @@ * @file * @brief Error handling for libFirm * @author Michael Beck - * @version $Id$ */ #ifndef FIRM_COMMON_ERROR_H #define FIRM_COMMON_ERROR_H @@ -55,6 +54,8 @@ /** * 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