Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: baacaac06f93dd624c9d7b3bac0e13fbe34f2d8c authored by Benjamin Peterson on 16 February 2019, 19:02:20 UTC
Set version to 2.7.16rc1.
Tip revision: baacaac
getcompiler.c

/* Return the compiler identification, if possible. */

#include "Python.h"

#ifndef COMPILER

#ifdef __GNUC__
#define COMPILER "\n[GCC " __VERSION__ "]"
#endif

#endif /* !COMPILER */

#ifndef COMPILER

#ifdef __cplusplus
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif

#endif /* !COMPILER */

const char *
Py_GetCompiler(void)
{
    return COMPILER;
}
back to top