view Python/getcompiler.c @ 50307:e2bbbc06d92c legacy-trunk

Patch #4739 by David Laban: add symbols to pydoc help topics, so that ``help('@')`` works as expected.
author Georg Brandl <georg@python.org>
date Sat, 27 Dec 2008 18:20:04 +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;
}