view Python/getcompiler.c @ 19160:9d024ae05837 legacy-trunk

st_nested_scopes was uninitialized trash. Jeremy should fix in a better way; see code comments.
author Tim Peters <tim.peters@gmail.com>
date Sat, 11 Aug 2001 01:06:35 +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;
}