Move malloc_wrappers.c to tests/common

This commit is contained in:
Petteri Aimonen
2014-12-26 17:08:17 +02:00
parent e5cbee84e1
commit 8a28b70351
7 changed files with 10 additions and 7 deletions

View File

@@ -0,0 +1,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>