py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it.

This commit is contained in:
Paul Sokolovsky
2015-01-30 01:42:49 +02:00
parent 32bade19d9
commit 98c4bc3fac
4 changed files with 15 additions and 3 deletions

View File

@@ -378,9 +378,11 @@ const qstr mp_binary_op_method_name[] = {
MP_BINARY_OP_INPLACE_XOR,
MP_BINARY_OP_INPLACE_AND,
MP_BINARY_OP_INPLACE_LSHIFT,
MP_BINARY_OP_INPLACE_RSHIFT,
MP_BINARY_OP_INPLACE_ADD,
MP_BINARY_OP_INPLACE_SUBTRACT,
MP_BINARY_OP_INPLACE_RSHIFT,*/
#if MICROPY_PY_ALL_SPECIAL_METHODS
[MP_BINARY_OP_INPLACE_ADD] = MP_QSTR___iadd__,
#endif
/*MP_BINARY_OP_INPLACE_SUBTRACT,
MP_BINARY_OP_INPLACE_MULTIPLY,
MP_BINARY_OP_INPLACE_FLOOR_DIVIDE,
MP_BINARY_OP_INPLACE_TRUE_DIVIDE,