projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1183932
)
use NORETURN macro instead of gcc like __attribute__(noreturn)
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 25 Nov 2007 18:12:06 +0000
(18:12 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 25 Nov 2007 18:12:06 +0000
(18:12 +0000)
[r18526]
adt/error.h
patch
|
blob
|
history
diff --git
a/adt/error.h
b/adt/error.h
index
44eb0fd
..
3384874
100644
(file)
--- a/
adt/error.h
+++ b/
adt/error.h
@@
-1,7
+1,8
@@
// placeholder file...
#include <stdio.h>
#include <stdlib.h>
+#include "config.h"
-static inline
__attribute__((noreturn))
+static inline
NORETURN
void panic(const char *msg)
{ fprintf(stderr, "Panic: %s\n", msg); abort(); }