Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 42454:648577cc688a legacy-trunk
Handle errors when generating a warning.
The value is always written to the returned pointer if getting it was
successful, even if a warning causes an error. (This probably doesn't matter
as the caller will probably discard the value.)
Will backport.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 05 Aug 2007 03:23:31 +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; }
