summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-03 16:50:11 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-03 18:09:36 +0300
commit4e0eeebdc2b452277c24f554c444f0cc0de9e4ea (patch)
tree6cda2dd6ff6fe129338c8980b045dbde1ba16645 /py/qstrdefs.h
parent381618269a9eb3e49d0e42d389d2dec312907577 (diff)
downloadmicropython-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/qstrdefs.h')
-rw-r--r--py/qstrdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 4ff9ca87c8..6fbfabde67 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -352,6 +352,9 @@ Q(stdout)
Q(stderr)
Q(version)
Q(version_info)
+#if MICROPY_PY_SYS_MAXSIZE
+Q(maxsize)
+#endif
#endif
#if MICROPY_PY_STRUCT