diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 11:13:44 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 11:13:44 +0200 |
commit | 82799b033807977478d7848d55264f6f3132a5eb (patch) | |
tree | 7b83a636715484c39c2c8f7e137845e0a23fda78 /built_in.h | |
parent | ac31518c8c8af043d157b294d99177b86f0bccd7 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |