view Python/getcompiler.c @ 45818:ff0ab7b28f49 legacy-trunk

- Issue #2371: Add a Py3k warning when catching an exception that doesn't derive from BaseException.
author Guido van Rossum <guido@python.org>
date Tue, 18 Mar 2008 02:49:46 +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;
}