diff options
author | Damien George <damien@micropython.org> | 2022-12-15 16:11:27 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-12-16 11:44:10 +1100 |
commit | 910f5794037bc32a48a0bc2658305b571ad84362 (patch) | |
tree | f04f5a297cdfca49353832b7ccde184020be1763 /docs/esp32 | |
parent | ed58d6e4ce5878d5f53457e72686962e7f57f5df (diff) |
py/emitnative: Initialise locals as Python object type for native code.
In @micropython.native code the types of variables and expressions are
always Python objects, so they can be initialised as such. This prevents
problems with compiling optimised code like while-loops where a local may
be referenced before it is assigned to.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions