We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8484df commit d277294Copy full SHA for d277294
py/misc.h
@@ -64,6 +64,7 @@ typedef unsigned int uint;
64
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)
65
66
#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
68
#define m_new_maybe(type, num) ((type *)(m_malloc_maybe(sizeof(type) * (num))))
69
#define m_new0(type, num) ((type *)(m_malloc0(sizeof(type) * (num))))
70
#define m_new_obj(type) (m_new(type, 1))
0 commit comments