firmware/extra/nanopb/tests/common/malloc_wrappers_syshdr.h
Patrick Moessler 0c83634f42 Initial commit
2019-10-13 00:37:11 +02:00

15 lines
353 B
C

/* This is just a wrapper in order to get our own malloc wrappers into nanopb core. */
#define pb_realloc(ptr,size) counting_realloc(ptr,size)
#define pb_free(ptr) counting_free(ptr)
#ifdef PB_OLD_SYSHDR
#include PB_OLD_SYSHDR
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#include <malloc_wrappers.h>