projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve arch_dump_reqs_and_registers()
[libfirm]
/
ir
/
common
/
error.h
diff --git
a/ir/common/error.h
b/ir/common/error.h
index
cec2643
..
e63de68
100644
(file)
--- a/
ir/common/error.h
+++ b/
ir/common/error.h
@@
-21,7
+21,6
@@
* @file
* @brief Error handling for libFirm
* @author Michael Beck
* @file
* @brief Error handling for libFirm
* @author Michael Beck
- * @version $Id$
*/
#ifndef FIRM_COMMON_ERROR_H
#define FIRM_COMMON_ERROR_H
*/
#ifndef FIRM_COMMON_ERROR_H
#define FIRM_COMMON_ERROR_H
@@
-55,6
+54,8
@@
/**
* Prints a panic message to stderr and exits.
*/
/**
* 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
# endif