From 52de97c88703b2bf0f2018c08f4bdf57ea43a7d1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 21 Jun 2011 17:26:29 -0500 Subject: [PATCH] Add a _NORETURN macro Signed-off-by: Dan McGee --- usual/base.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usual/base.h b/usual/base.h index 1f2ece4..e14d09a 100644 --- a/usual/base.h +++ b/usual/base.h @@ -122,6 +122,8 @@ #define _UNUSED __attribute__((unused)) /** Do not inline function. */ #define _NOINLINE __attribute__((noinline)) +/** Indicates that function never returns */ +#define _NORETURN __attribute__((noreturn)) /* compiler hints - those do not seem to work well */ #define unlikely(x) __builtin_expect(!!(x), 0) @@ -135,6 +137,7 @@ #define _MALLOC #define _UNUSED #define _NOINLINE +#define _NORETURN #define unlikely(x) x #define likely(x) x -- 2.39.5