view Python/getcompiler.c @ 51956:8fe2988cf550

ignore the coding cookie in compile(), exec(), and eval() if the source is a string #4626
author Benjamin Peterson <benjamin@python.org>
date Mon, 02 Mar 2009 23:31:26 +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;
}