circuitpython/shared-module/qrio/quirc_alloc.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
320 B
C
Raw Normal View History

#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))
#define QUIRC_CALLOC(x,y) m_malloc((x) * (y))
#define QUIRC_FREE(x) gc_free((x))
#define QUIRC_SMALL_STACK (1)