summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-30 01:42:49 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-31 00:35:56 +0200
commit98c4bc3facff901a38cdbc2df99ee5da17ba3f2e (patch)
tree0137a13fff24444b9114f8ab8c53ed794a0d70f7 /py/mpconfig.h
parent32bade19d952c23c2fd499050abb17cb80dc7559 (diff)
py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h6
1 files changed, 6 insertions, 0 deletions
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)