aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/libs/nanopb/tests/common/malloc_wrappers_syshdr.h
blob: d295d9ed0b3514f600b9cb275b423e38cef39b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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>