From d6230f62c785c6c1ef1797500617c33e24607980 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 23 Sep 2014 14:10:03 +0000 Subject: py: Make native emitter handle multi-compare and not/is not/not in ops. --- py/runtime0.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'py/runtime0.h') diff --git a/py/runtime0.h b/py/runtime0.h index d309d7b8c..b6db1dd85 100644 --- a/py/runtime0.h +++ b/py/runtime0.h @@ -51,7 +51,8 @@ typedef enum { MP_UNARY_OP_POSITIVE, MP_UNARY_OP_NEGATIVE, MP_UNARY_OP_INVERT, - // these are not supported by the runtime and must be synthesised by the emitter + // The NOT op is only implemented by bool. The emitter must synthesise NOT + // for other types by calling BOOL then inverting (eg by then calling NOT). MP_UNARY_OP_NOT, } mp_unary_op_t; -- cgit v1.2.3