Staging
v0.5.1
https://github.com/python/cpython
Revision d2bee32e9e0030dee22249a18998c079eec3b8cb authored by Neal Norwitz on 01 April 2008, 07:37:58 UTC, committed by Neal Norwitz on 01 April 2008, 07:37:58 UTC
1 parent e1e9f23
Raw File
Tip revision: d2bee32e9e0030dee22249a18998c079eec3b8cb authored by Neal Norwitz on 01 April 2008, 07:37:58 UTC
Fix a refleak
Tip revision: d2bee32
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