Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

c_compiler.c

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 2013-2022 The Board of Trustees of the
00004  *cr                        University of Illinois
00005  *cr                         All Rights Reserved
00006  *cr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010 * RCS INFORMATION:
00011 *
00012 *      $RCSfile: c_compiler.c,v $
00013 *      $Author: johns $      $Locker:  $               $State: Exp $
00014 *      $Revision: 1.3 $         $Date: 2024/05/16 19:34:09 $
00015 *
00016 ***************************************************************************/
00022 #include "c_compiler.h"
00023 
00024 // runtime query of compile-time C compiler language version,
00025 // used by "vmdinfo compilers" command...
00026 const char *c_compiler_std() {
00027 #if   (__STDC_VERSION__ >= 201112L)
00028       const char *ccversion = "C11"; // C 2011
00029 #elif   (__STDC_VERSION__ >= 199901L)
00030       const char *ccversion = "C99"; // C 1999 
00031 #elif (__STDC_VERSION__ >= 199409L)
00032       const char *ccversion = "C90"; // C 1990
00033 #elif defined(__STDC__)
00034       const char *ccversion = "C89"; // C 1989 - ANSI C
00035 #else
00036       const char *ccversion = "Unknown C";
00037 #endif
00038 
00039   return ccversion;
00040 }
00041 
00042 
00043 

Generated on Sun May 19 02:43:44 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002