Staging
v0.5.1
https://github.com/python/cpython
Revision cfa9bad4b22c30f208e3b430dcd3db4e5f8cf0e1 authored by Martin Panter on 10 December 2016, 04:10:45 UTC, committed by Martin Panter on 10 December 2016, 04:10:45 UTC
1 parent a277c13
Raw File
Tip revision: cfa9bad4b22c30f208e3b430dcd3db4e5f8cf0e1 authored by Martin Panter on 10 December 2016, 04:10:45 UTC
Issue #28755: Improve syntax highlighting in Arg Clinic howto
Tip revision: cfa9bad
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