summaryrefslogtreecommitdiffstats
path: root/tests/common/malloc_wrappers.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-12-26 17:08:17 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-12-26 17:08:17 +0200
commit8a28b70351baf09f2131fee2fc186a96d069cc2e (patch)
treea07c1028965032ebe438f9c4e8585dcda4f6c386 /tests/common/malloc_wrappers.h
parente5cbee84e12e87b342d7c57808b009387e1ba2bb (diff)
Move malloc_wrappers.c to tests/common
Diffstat (limited to 'tests/common/malloc_wrappers.h')
-rw-r--r--tests/common/malloc_wrappers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common/malloc_wrappers.h b/tests/common/malloc_wrappers.h
new file mode 100644
index 00000000..7eec7952
--- /dev/null
+++ b/tests/common/malloc_wrappers.h
@@ -0,0 +1,7 @@
+#include <stdlib.h>
+
+void* malloc_with_check(size_t size);
+void free_with_check(void *mem);
+void* counting_realloc(void *ptr, size_t size);
+void counting_free(void *ptr);
+size_t get_alloc_count();