view Python/getcompiler.c @ 87584:6d6a018a3bb0 2.7

Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float.
author Mark Dickinson <dickinsm@gmail.com>
date Tue, 26 Nov 2013 16:38:25 +0000
parents 4306107b1395
children
line wrap: on
line source


/* 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;
}