summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-17 11:13:44 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-17 11:13:44 +0200
commit82799b033807977478d7848d55264f6f3132a5eb (patch)
tree7b83a636715484c39c2c8f7e137845e0a23fda78 /built_in.h
parentac31518c8c8af043d157b294d99177b86f0bccd7 (diff)
built_in: Add __noreturn marker
This can be used to mark functions which will call exit() by themselves. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/built_in.h b/built_in.h
index 72618a0..8bea69c 100644
--- a/built_in.h
+++ b/built_in.h
@@ -89,6 +89,10 @@ typedef uint8_t u8;
# define noinline __attribute__((noinline))
#endif
+#ifndef __noreturn
+# define __noreturn __attribute__((noreturn))
+#endif
+
#ifndef __hidden
# define __hidden __attribute__((visibility("hidden")))
#endif