diff options
author | delphij <delphij@FreeBSD.org> | 2016-01-08 08:06:14 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-01-08 08:06:14 +0000 |
commit | 8518518f8f222e4d58e27928a988f034b82bbb77 (patch) | |
tree | eacecf05ade498902c426d07b76ce3d5e1306ffe /sntp/unity/unity_internals.h | |
parent | d6817aff5f9c408aa26476fd4023ecc89de34f56 (diff) | |
download | FreeBSD-src-8518518f8f222e4d58e27928a988f034b82bbb77.zip FreeBSD-src-8518518f8f222e4d58e27928a988f034b82bbb77.tar.gz |
Vendor import of ntp-4.2.8p5.
Diffstat (limited to 'sntp/unity/unity_internals.h')
-rw-r--r-- | sntp/unity/unity_internals.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sntp/unity/unity_internals.h b/sntp/unity/unity_internals.h index c2aabc3..bf1bf3d 100644 --- a/sntp/unity/unity_internals.h +++ b/sntp/unity/unity_internals.h @@ -305,6 +305,18 @@ extern int UNITY_OUTPUT_CHAR(int); # undef UNITY_WEAK_PRAGMA #endif +#if !defined(UNITY_NORETURN_ATTRIBUTE) +# ifdef __GNUC__ // includes clang +# if !(defined(__WIN32__) && defined(__clang__)) +# define UNITY_NORETURN_ATTRIBUTE __attribute__((noreturn)) +# endif +# endif +#endif + +#ifndef UNITY_NORETURN_ATTRIBUTE +# define UNITY_NORETURN_ATTRIBUTE +#endif + //------------------------------------------------------- // Internal Structs Needed @@ -465,7 +477,7 @@ void UnityAssertNumbersWithin(const _U_SINT delta, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style); -void UnityFail(const char* message, const UNITY_LINE_TYPE line); +void UnityFail(const char* message, const UNITY_LINE_TYPE line) UNITY_NORETURN_ATTRIBUTE; void UnityIgnore(const char* message, const UNITY_LINE_TYPE line); |