xref: /freebsd/contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1 //- Copyright (c) 2010 James Grenning and Contributed to Unity Project
2 /* ==========================================
3     Unity Project - A Test Framework for C
4     Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
5     [Released under MIT License. Please refer to license.txt for details]
6 ========================================== */
7 
8 #ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
9 #define UNITY_FIXTURE_MALLOC_OVERRIDES_H_
10 
11 #define malloc  unity_malloc
12 #define calloc  unity_calloc
13 #define realloc unity_realloc
14 #define free    unity_free
15 
16 void* unity_malloc(size_t size);
17 void* unity_calloc(size_t num, size_t size);
18 void* unity_realloc(void * oldMem, size_t size);
19 void unity_free(void * mem);
20 
21 #endif /* UNITY_FIXTURE_MALLOC_OVERRIDES_H_ */
22