view Python/getcompiler.c @ 39439:1087df00a6e8 legacy-trunk

logging's atexit hook now runs even if the rest of the module has already been cleaned up.
author Georg Brandl <georg@python.org>
date Fri, 11 Aug 2006 07:26:10 +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;
}