diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-09-23 14:10:03 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-09-23 14:15:45 +0000 |
| commit | d6230f62c785c6c1ef1797500617c33e24607980 (patch) | |
| tree | df12c1f20b9c22de5b25224c4bbd4e1e89cac871 /py/runtime0.h | |
| parent | 96e20c600f6498c403445956077f85dd2fb548aa (diff) | |
py: Make native emitter handle multi-compare and not/is not/not in ops.
Diffstat (limited to 'py/runtime0.h')
| -rw-r--r-- | py/runtime0.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
