view Python/getcompiler.c @ 35095:8341cefdecac legacy-trunk

You can have more than one thread state for a thread if they correspond to different interpreters (I hope, please revert if this is wrong :).
author Michael W. Hudson <mwh@python.net>
date Thu, 16 Jun 2005 11:35:00 +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;
}