Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: 6046c5e0298c25515ea58abc8ab87f7413e3f743 authored by Barry Warsaw on 03 December 2008, 17:29:10 UTC
Oops, one revision we forgot.
Tip revision: 6046c5e
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