From 98c4bc3facff901a38cdbc2df99ee5da17ba3f2e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 30 Jan 2015 01:42:49 +0200 Subject: py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it. --- py/mpconfig.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index b54bd6544..e8c8fcc59 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -376,6 +376,12 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_PROPERTY (1) #endif +// Whether to support complete set of special methods +// for user classes, otherwise only the most used +#ifndef MICROPY_PY_ALL_SPECIAL_METHODS +#define MICROPY_PY_ALL_SPECIAL_METHODS (0) +#endif + // Whether to support compile function #ifndef MICROPY_PY_BUILTINS_COMPILE #define MICROPY_PY_BUILTINS_COMPILE (0) -- cgit v1.2.3