diff options
| author | Paul Sokolovsky | 2015-08-20 01:01:56 +0300 |
|---|---|---|
| committer | Paul Sokolovsky | 2015-08-20 01:05:11 +0300 |
| commit | 22ff397fb11fac323607ef2e51d81a4ed96c2c50 (patch) | |
| tree | e87bc9304805023caa719937b2c926ef16c03a30 /py/objfilter.c | |
| parent | 7f70b60f4d05126a838364ee91d288ec8c47d362 (diff) | |
py: Add MICROPY_PY_BUILTINS_FILTER, disable for minimal ports.
Saves 320 bytes on x86.
Diffstat (limited to 'py/objfilter.c')
| -rw-r--r-- | py/objfilter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/objfilter.c b/py/objfilter.c index a97c9f554..9ed37f598 100644 --- a/py/objfilter.c +++ b/py/objfilter.c @@ -26,6 +26,8 @@ #include "py/runtime.h" +#if MICROPY_PY_BUILTINS_FILTER + typedef struct _mp_obj_filter_t { mp_obj_base_t base; mp_obj_t fun; @@ -66,3 +68,5 @@ const mp_obj_type_t mp_type_filter = { .getiter = mp_identity, .iternext = filter_iternext, }; + +#endif // MICROPY_PY_BUILTINS_FILTER |
