summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime0.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/runtime0.h')
-rw-r--r--py/runtime0.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/runtime0.h b/py/runtime0.h
index cd82b1412b..a0f553a896 100644
--- a/py/runtime0.h
+++ b/py/runtime0.h
@@ -1,8 +1,11 @@
typedef enum {
- RT_UNARY_OP_NOT, // TODO remove this op since it's no longer needed
+ RT_UNARY_OP_BOOL, // __bool__
+ RT_UNARY_OP_LEN, // __len__
RT_UNARY_OP_POSITIVE,
RT_UNARY_OP_NEGATIVE,
RT_UNARY_OP_INVERT,
+ // Used only for CPython-compatible codegeneration
+ RT_UNARY_OP_NOT,
} rt_unary_op_t;
typedef enum {