view Python/getcompiler.c @ 41206:d835809f45ec 2.5

Patch #1642547: Fix an error/crash when encountering syntax errors in complex if statements. Backported from r54404.
author Collin Winter <collinw@gmail.com>
date Fri, 16 Mar 2007 04:12:48 +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;
}