view Python/getplatform.c @ 14781:081671cef7c1 legacy-trunk

Andrew Kuchling <akuchlin@mems-exchange.org>: Add three new convenience functions to the PyModule_*() family: PyModule_AddObject(), PyModule_AddIntConstant(), PyModule_AddStringConstant(). This closes SourceForge patch #101233.
author Fred Drake <fdrake@acm.org>
date Sat, 23 Sep 2000 03:24:27 +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;
}