| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#include <stdlib.h> |
| 5 |
#define malloc mock_malloc |
| 6 |
#define calloc mock_calloc |
| 7 |
#define realloc mock_realloc |
| 8 |
#define free mock_free |
| 9 |
|
| 10 |
extern void* mock_malloc(size_t size); |
| 11 |
extern void* mock_calloc(size_t nmemb, size_t size); |
| 12 |
extern void* mock_realloc(void* ptr, size_t size); |
| 13 |
extern void mock_free(void* ptr); |
| 14 |
|
| 15 |
#undef _CRTDBG_MAP_ALLOC |
| 16 |
#include "../src/gballoc.c" |