From 82799b033807977478d7848d55264f6f3132a5eb Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 11:13:44 +0200 Subject: built_in: Add __noreturn marker This can be used to mark functions which will call exit() by themselves. Signed-off-by: Tobias Klauser --- built_in.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-54-g00ecf