Staging
v0.5.1
https://github.com/python/cpython
Revision 369cbd744ed06b3e01fe7a2e6a86ea4d85250231 authored by Ezio Melotti on 13 February 2012, 18:36:55 UTC, committed by Ezio Melotti on 13 February 2012, 18:36:55 UTC
1 parent ef18737
Raw File
Tip revision: 369cbd744ed06b3e01fe7a2e6a86ea4d85250231 authored by Ezio Melotti on 13 February 2012, 18:36:55 UTC
Fix an index, add more tests, avoid raising errors for unknown declarations, and clean up comments.
Tip revision: 369cbd7
getcompiler.c

/* 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;
}
back to top