From 4e0eeebdc2b452277c24f554c444f0cc0de9e4ea Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 3 Jul 2014 16:50:11 +0300 Subject: py: Implement sys.maxsize, standard way to check platform "bitness". Implementing it as a static constant is a bit peculiar and require cooperation from long int implementation. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index da9cffc56a..c04c69c639 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -336,6 +336,11 @@ typedef double mp_float_t; #define MICROPY_PY_SYS (1) #endif +// Whether to provide "sys.maxsize" constant +#ifndef MICROPY_PY_SYS_MAXSIZE +#define MICROPY_PY_SYS_MAXSIZE (0) +#endif + // Whether to provide "sys.exit" function #ifndef MICROPY_PY_SYS_EXIT #define MICROPY_PY_SYS_EXIT (0) -- cgit v1.2.3