Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bad9a580caaba5088bea569c9c6775dab12b8103 authored by Benjamin Peterson on 14 April 2018, 22:06:30 UTC
2.7.15rc1 version bump
Tip revision: bad9a58
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