diff options
author | Damien George <damien@micropython.org> | 2024-02-16 10:58:36 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-02-20 10:32:51 +1100 |
commit | 4133c0304011ff7be23f47516aac20ed54505e7a (patch) | |
tree | 9bc8d25666bbf5b0e1226dd5ad3b94ef8ea9bd46 /extmod/modsocket.c | |
parent | 24234937747e6d7fd920d21358fb26b826398e1a (diff) | |
download | micropython-4133c0304011ff7be23f47516aac20ed54505e7a.tar.gz micropython-4133c0304011ff7be23f47516aac20ed54505e7a.zip |
py/obj: Introduce mp_obj_malloc_with_finaliser to allocate and set type.
Following 709e8328d9812a2e02da6fba65a03f9a873d60a2.
Using this helps to reduce code size. And it ensure that the type is
always set as soon as the object is allocated, which is important for the
GC to function correctly.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modsocket.c')
0 files changed, 0 insertions, 0 deletions