Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 63a976e114f4c20656ca211b7f545b329d1b6675 authored by Barry Warsaw on 14 April 2009, 13:16:19 UTC
Bumping to 2.6.2 (final).
Tip revision: 63a976e
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