Staging
v0.5.1
https://github.com/python/cpython
Revision cc3e73212aa1b197f2f8ed636e0ecf73caaea302 authored by Ned Deily on 11 December 2018, 21:47:14 UTC, committed by Ned Deily on 11 December 2018, 21:47:14 UTC
1 parent d23e1ea
Raw File
Tip revision: cc3e73212aa1b197f2f8ed636e0ecf73caaea302 authored by Ned Deily on 11 December 2018, 21:47:14 UTC
3.6.8rc1
Tip revision: cc3e732
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