"Fossies" - the Fresh Open Source Software Archive

Member "bison-3.4.1/lib/_Noreturn.h" (23 Apr 2019, 1467 Bytes) of package /linux/misc/bison-3.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "_Noreturn.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 3.3.2_vs_3.4.

    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