diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-03 16:50:11 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-03 18:09:36 +0300 |
commit | 4e0eeebdc2b452277c24f554c444f0cc0de9e4ea (patch) | |
tree | 6cda2dd6ff6fe129338c8980b045dbde1ba16645 /py/mpconfig.h | |
parent | 381618269a9eb3e49d0e42d389d2dec312907577 (diff) | |
download | micropython-4e0eeebdc2b452277c24f554c444f0cc0de9e4ea.tar.gz micropython-4e0eeebdc2b452277c24f554c444f0cc0de9e4ea.zip |
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.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) |