Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: ffccaa40fa237f4afc9eec87c78a98356f9f6e77 authored by Larry Hastings on 06 December 2015, 01:05:23 UTC
Version bump for 3.5.1 final.
Tip revision: ffccaa4
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