Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: 160b9a3c94c176f4df601a2e348e48fb6436925f authored by Barry Warsaw on 08 May 2008, 11:54:13 UTC
Bumping versions for 3.0a5
Tip revision: 160b9a3
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