Staging
v0.8.1
https://github.com/python/cpython
Revision 6314b2244c5daf0e8c8cc61db05c8c9498f111a7 authored by Fred Drake on 22 May 2003, 15:09:55 UTC, committed by Fred Drake on 22 May 2003, 15:09:55 UTC
1 parent 49a5f47
Raw File
Tip revision: 6314b2244c5daf0e8c8cc61db05c8c9498f111a7 authored by Fred Drake on 22 May 2003, 15:09:55 UTC
Minor elaboration in the information about reporting errors.
Tip revision: 6314b22
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