diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-08 15:58:39 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-08 15:58:39 +0000 |
commit | ffae48d7507d398806bd935b054b7ca19bc01161 (patch) | |
tree | 0b21d74a0decf3167f3a92e7df6cd2fb21130eea /py/qstrdefs.h | |
parent | c1c32d65af038ba1b2a2a8dd69e3f7e63eac5f3e (diff) |
py, compiler: Add basic support for A=const(123).
You can now do:
X = const(123)
Y = const(456 + X)
and the compiler will replace X and Y with their values.
See discussion in issue #266 and issue #573.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 42ae7038d..29b3cc33b 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -64,6 +64,7 @@ Q(micropython) Q(byte_code) Q(native) Q(viper) +Q(const) #if MICROPY_EMIT_INLINE_THUMB Q(asm_thumb) |