view Python/getcompiler.c @ 24190:a2bcb00dcbd5 legacy-trunk

Don't stomp on an exception set by PyCell_Get()
author Jeremy Hylton <jeremy@alum.mit.edu>
date Thu, 11 Jul 2002 16:56:38 +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;
}