Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: 4e0f6639d8f13828cf645c2ec1f8ff2fc9c5f0ab authored by Larry Hastings on 03 August 2013, 19:47:53 UTC
Updated pydoc topics for Python 3.4.0a1 release.
Tip revision: 4e0f663
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