view Python/getcompiler.c @ 46171:c77cc23e394f 2.5

Fix a reference leak found by Georg, when compiling a class nested in another class. Test is run with "regrtest.py -R:: test_compile" Backport of r62015
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Fri, 28 Mar 2008 20:45:42 +0000
parents 4306107b1395
children
line wrap: on
line source


/* 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;
}