Skip to content

Commit d277294

Browse files
committed
Alias m_new_ll to m_new
this saves changing uses of it in ports/ and if we re-add ll later, it'll make it easier to find the places that needed long-lived allocation.
1 parent d8484df commit d277294

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/misc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef unsigned int uint;
6464
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)
6565

6666
#define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num))))
67+
#define m_new_ll(type, num) m_new(type, num) // CIRCUITPY: clue to long-lived allocator
6768
#define m_new_maybe(type, num) ((type *)(m_malloc_maybe(sizeof(type) * (num))))
6869
#define m_new0(type, num) ((type *)(m_malloc0(sizeof(type) * (num))))
6970
#define m_new_obj(type) (m_new(type, 1))

0 commit comments

Comments
 (0)