Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: fa7193286099f8e4164f4a795afd5ad4a8e229df authored by Larry Hastings on 20 December 2015, 03:31:10 UTC
Release bump for Python 3.4.4 final.
Tip revision: fa71932
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