Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d724296fc3f0e2f07e0d75f116344ef7f1f72021 authored by Barry Warsaw on 23 August 2010, 23:37:56 UTC
2.6.6 final. \o/
Tip revision: d724296
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