2020-08-28 12:24:59 -04:00
|
|
|
#pragma once
|
2020-03-10 14:12:01 -04:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
2020-04-07 12:19:24 -04:00
|
|
|
#include "py/gc.h"
|
2020-03-10 14:12:01 -04:00
|
|
|
#include "py/misc.h"
|
|
|
|
#include "supervisor/memory.h"
|
|
|
|
|
2020-08-28 12:24:59 -04:00
|
|
|
#define _PM_ALLOCATOR common_hal_rgbmatrix_allocator_impl
|
|
|
|
#define _PM_FREE(x) (common_hal_rgbmatrix_free_impl((x)), (x)=NULL, (void)0)
|
|
|
|
extern void *common_hal_rgbmatrix_allocator_impl(size_t sz);
|
|
|
|
extern void common_hal_rgbmatrix_free_impl(void *);
|