summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2017-11-06 12:21:53 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-11-12 14:16:54 +0200
commit79ed58f87b008ed1ad75c611686ca8bebfe2a817 (patch)
treeaf11d8a624bf55ea5669e0e5219248635325ef26 /py/mpconfig.h
parentcada971113e6db0cf9e0751e95dbe9217dd707b5 (diff)
py/objnamedtuple: Add _asdict function if OrderedDict is supported
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index fa1094bfc..4209b32c6 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -894,6 +894,11 @@ typedef double mp_float_t;
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (0)
#endif
+// Whether to provide the _asdict function for namedtuple
+#ifndef MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT
+#define MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT (0)
+#endif
+
// Whether to provide "math" module
#ifndef MICROPY_PY_MATH
#define MICROPY_PY_MATH (1)