Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 3d407dc564bd92b46ed00380213f545e515d6ddf authored by Barry Warsaw on 04 December 2008, 02:59:51 UTC
Prep for 2.6.1
Tip revision: 3d407dc
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