view Python/getplatform.c @ 48839:587cd4f66c2d

fix #3653 Python could segfault if invalid values were passed to sys.excepthook Author: Daniel Diniz Reviewer: Georg Brandl
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 Aug 2008 20:08:07 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}