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.
This commit is contained in:
parent
d8484df075
commit
d277294a14
@ -64,6 +64,7 @@ typedef unsigned int uint;
|
||||
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)
|
||||
|
||||
#define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num))))
|
||||
#define m_new_ll(type, num) m_new(type, num) // CIRCUITPY: clue to long-lived allocator
|
||||
#define m_new_maybe(type, num) ((type *)(m_malloc_maybe(sizeof(type) * (num))))
|
||||
#define m_new0(type, num) ((type *)(m_malloc0(sizeof(type) * (num))))
|
||||
#define m_new_obj(type) (m_new(type, 1))
|
||||
|
Loading…
Reference in New Issue
Block a user