view Python/getcompiler.c @ 50102:a6ddd94983ea 2.5

Backport issue 4597 to python 2.5.3: Fixed several opcodes that weren't always propagating exceptions.
author Jeffrey Yasskin <jyasskin@gmail.com>
date Wed, 10 Dec 2008 17:23:20 +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;
}