diff options
author | Jun Wu <quark@lihdd.net> | 2019-05-05 23:14:25 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-06-28 13:59:45 +1000 |
commit | d165a401dce66ba952b016d116b60e77b11f3e1f (patch) | |
tree | 53e68f627834677c4d380ef505daf51b3c8860dc /tests/bench/func_args-1.1-pos_1.py | |
parent | b152bbddd132cf3f147a526efebedaf25eba29cd (diff) | |
download | micropython-d165a401dce66ba952b016d116b60e77b11f3e1f.tar.gz micropython-d165a401dce66ba952b016d116b60e77b11f3e1f.zip |
py/persistentcode: Fix compilation with load and save both enabled.
With both MICROPY_PERSISTENT_CODE_SAVE and MICROPY_PERSISTENT_CODE_LOAD
enabled the code fails to compile, due to undeclared 'n_obj'. If
MICROPY_EMIT_NATIVE is disabled there are more errors due to the use of
undefined fields in mp_raw_code_t.
This patch fixes such compilation by avoiding undefined fields.
MICROPY_EMIT_NATIVE was changed to MICROPY_EMIT_MACHINE_CODE in this file
to match the mp_raw_code_t definition.
Diffstat (limited to 'tests/bench/func_args-1.1-pos_1.py')
0 files changed, 0 insertions, 0 deletions