diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-04-06 23:50:37 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-04-06 23:51:29 +0300 |
commit | e2d44e30c77360789d6e7c1211b222f93b92e0df (patch) | |
tree | 6240115cdc126f9b7964ca1dbfb562031eb87ce5 /py/mpconfig.h | |
parent | 96b60ed956032ece733821663e24f1263bdcd37a (diff) | |
download | micropython-e2d44e30c77360789d6e7c1211b222f93b92e0df.tar.gz micropython-e2d44e30c77360789d6e7c1211b222f93b92e0df.zip |
py: Add MICROPY_PY_BUILTINS_ENUMERATE, disable for minimal ports.
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 b2f37e99c7..4065c68665 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -459,6 +459,11 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_COMPILE (0) #endif +// Whether to support enumerate function(type) +#ifndef MICROPY_PY_BUILTINS_ENUMERATE +#define MICROPY_PY_BUILTINS_ENUMERATE (1) +#endif + // Whether to support the Python 2 execfile function #ifndef MICROPY_PY_BUILTINS_EXECFILE #define MICROPY_PY_BUILTINS_EXECFILE (0) |