diff options
author | stijn <stijn@ignitron.net> | 2019-01-03 15:19:42 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-01-27 13:01:28 +1100 |
commit | 42863830be2d19c7dcdf7ccf1fa66168b1bdc13a (patch) | |
tree | 7a79ea7a839754ea15f6a98d0273632135cae29c /py/mpconfig.h | |
parent | 51577629b2e91be3ec911167e0bd0311694166db (diff) |
py: Add optional support for 2-argument version of built-in next().
Configurable via MICROPY_PY_BUILTINS_NEXT2, disabled by default.
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 68a855f19..48427c3e5 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -881,6 +881,11 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_RANGE_BINOP (0) #endif +// Support for callling next() with second argument +#ifndef MICROPY_PY_BUILTINS_NEXT2 +#define MICROPY_PY_BUILTINS_NEXT2 (0) +#endif + // Whether to support rounding of integers (incl bignum); eg round(123,-1)=120 #ifndef MICROPY_PY_BUILTINS_ROUND_INT #define MICROPY_PY_BUILTINS_ROUND_INT (0) |