Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 5c4568a05a0a62b5947c55f68f9f2ecfb90a4f12 authored by Ned Deily on 22 December 2016, 23:38:47 UTC
Update docs and patchlevel for 3.6.0 final.
Tip revision: 5c4568a
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