Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 3101b7076270756f8be699358c69c5d15ea2cc48 authored by Larry Hastings on 16 March 2014, 05:43:17 UTC
Final documentation fixes for 3.4.0 final.
Tip revision: 3101b70
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