-
- Downloads
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.
Showing
- py/compile.c 71 additions, 37 deletionspy/compile.c
- py/mpconfig.h 5 additions, 0 deletionspy/mpconfig.h
- py/qstrdefs.h 1 addition, 0 deletionspy/qstrdefs.h
- tests/micropython/const.py 11 additions, 0 deletionstests/micropython/const.py
- tests/micropython/const.py.exp 2 additions, 0 deletionstests/micropython/const.py.exp
- tests/run-tests 1 addition, 1 deletiontests/run-tests
Loading
Please register or sign in to comment