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