diff options
author | stijn <stijn@ignitron.net> | 2025-04-22 14:53:07 +0200 |
---|---|---|
committer | stijn <stijn@ignitron.net> | 2025-04-24 15:55:06 +0200 |
commit | 02eea0da2448f2be9bcc04f340a6a0a1fae18f7b (patch) | |
tree | b2d30249460d45bf442033238698b06786e07c0d /tests/float/string_format2.py | |
parent | 076e07197e35cdc0e23bd6f45fd21a36e2162e88 (diff) | |
download | micropython-02eea0da2448f2be9bcc04f340a6a0a1fae18f7b.tar.gz micropython-02eea0da2448f2be9bcc04f340a6a0a1fae18f7b.zip |
py: Make struct-initializing macros compatible with C++.
This requires explicitly naming and initializing all members so add that
where needed and possible. For MP_DEFINE_NLR_JUMP_CALLBACK_FUNCTION_1
this would require initializing the .callback member, but that's a bit
of a waste since the macro is always followed by a call to
nlr_push_jump_callback() to initialize exactly that member, so rewrite
the macro without initializers.
Signed-off-by: stijn <stijn@ignitron.net>
Diffstat (limited to 'tests/float/string_format2.py')
0 files changed, 0 insertions, 0 deletions