Staging
v0.5.1
https://github.com/python/cpython
Revision 5b63acd31e0e40c1a9a9e9762905b0054ff37994 authored by Benjamin Peterson on 29 March 2008, 15:24:25 UTC, committed by Benjamin Peterson on 29 March 2008, 15:24:25 UTC
1 parent 672fbf5
Raw File
Tip revision: 5b63acd31e0e40c1a9a9e9762905b0054ff37994 authored by Benjamin Peterson on 29 March 2008, 15:24:25 UTC
#2503 make singletons compared with "is" not == or !=
Tip revision: 5b63acd
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