https://github.com/python/cpython
Raw File
Tip revision: 9e31d36d4ae8a5e1923a59635790a4fe1ba16324 authored by Stefan Krah on 08 September 2012, 13:35:01 UTC
Issue #15814: Update whatsnew to the current state of hashing memoryviews.
Tip revision: 9e31d36
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