view Python/getcompiler.c @ 80553:bf1bf3bf3fe2 3.3

Address reviews for open’s opener argument doc patch (#13424). * Remove example deemed not helpful. * Simplify the other one. * Add missing target to ref.
author Éric Araujo <merwok@netwok.org>
date Thu, 22 Nov 2012 00:13:49 -0500
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;
}