2021-08-03 08:42:53 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "py/gc.h"
|
|
|
|
|
|
|
|
#if !MICROPY_GC_CONSERVATIVE_CLEAR
|
|
|
|
// so that we can implement calloc as m_malloc
|
|
|
|
#error Requires MICROPY_GC_CONSERVATIVE_CLEAR
|
|
|
|
#endif
|
|
|
|
|
2023-08-10 20:06:32 -04:00
|
|
|
#define QUIRC_MALLOC(x) m_malloc((x))
|
2023-08-14 00:47:22 -04:00
|
|
|
#define QUIRC_CALLOC(x, y) m_malloc((x) * (y))
|
2021-08-03 08:42:53 -05:00
|
|
|
#define QUIRC_FREE(x) gc_free((x))
|
2021-08-05 12:45:27 -05:00
|
|
|
|
|
|
|
#define QUIRC_SMALL_STACK (1)
|