Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bf9cccb2b54ad2c641ea78435a8618a6d251491e authored by Ned Deily on 19 September 2017, 08:31:30 UTC
post 3.3.7, should there be any
Tip revision: bf9cccb
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