Annotation of embedaddon/libiconv/srclib/_Noreturn.h, revision 1.1.1.1
1.1 misho 1: /* A C macro for declaring that a function does not return.
2: Copyright (C) 2011-2019 Free Software Foundation, Inc.
3:
4: This program is free software: you can redistribute it and/or modify it
5: under the terms of the GNU General Public License as published
6: by the Free Software Foundation; either version 3 of the License, or
7: (at your option) any later version.
8:
9: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: General Public License for more details.
13:
14: You should have received a copy of the GNU General Public License
15: along with this program. If not, see <https://www.gnu.org/licenses/>. */
16:
17: #ifndef _Noreturn
18: # if (defined __cplusplus \
19: && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
20: || (defined _MSC_VER && 1900 <= _MSC_VER)))
21: # define _Noreturn [[noreturn]]
22: # elif ((!defined __cplusplus || defined __clang__) \
23: && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
24: || 4 < __GNUC__ + (7 <= __GNUC_MINOR__)))
25: /* _Noreturn works as-is. */
26: # elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C
27: # define _Noreturn __attribute__ ((__noreturn__))
28: # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
29: # define _Noreturn __declspec (noreturn)
30: # else
31: # define _Noreturn
32: # endif
33: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>