Staging
v0.8.1
https://github.com/python/cpython
Revision bc7a130f90e34514bd2b833f9bc9f16001caeb38 authored by Larry Hastings on 23 January 2018, 13:49:45 UTC, committed by Larry Hastings on 23 January 2018, 13:49:45 UTC
1 parent 2740fcc
Raw File
Tip revision: bc7a130f90e34514bd2b833f9bc9f16001caeb38 authored by Larry Hastings on 23 January 2018, 13:49:45 UTC
Whoops, missed checking in version bump.
Tip revision: bc7a130
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