Staging
v0.5.1
https://github.com/python/cpython
Revision 2a1e3e67b38863a9f282aadcdb52fe2ed87ef4ca authored by Daniel Stutzbach on 17 December 2010, 20:53:03 UTC, committed by Daniel Stutzbach on 17 December 2010, 20:53:03 UTC
1 parent 910a4ed
Raw File
Tip revision: 2a1e3e67b38863a9f282aadcdb52fe2ed87ef4ca authored by Daniel Stutzbach on 17 December 2010, 20:53:03 UTC
Issue2690: Update docs to reflect the change made by issue2690.
Tip revision: 2a1e3e6
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