Staging
v0.5.1
https://github.com/python/cpython
Revision 407b3bd89b877c198bf9cdbf290ddb91b49910b5 authored by Mark Dickinson on 29 April 2012, 21:18:31 UTC, committed by Mark Dickinson on 29 April 2012, 21:18:31 UTC
1 parent 2420d83
Raw File
Tip revision: 407b3bd89b877c198bf9cdbf290ddb91b49910b5 authored by Mark Dickinson on 29 April 2012, 21:18:31 UTC
Issue #14696: Fix parser module to understand 'nonlocal' declarations.
Tip revision: 407b3bd
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