| 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 |
#ifndef UMOCKALLOC_H |
| 5 |
#define UMOCKALLOC_H |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
#include <cstddef> |
| 9 |
#else |
| 10 |
#include <stddef.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#ifdef __cplusplus |
| 14 |
extern "C" { |
| 15 |
#endif |
| 16 |
|
| 17 |
void* umockalloc_malloc(size_t size); |
| 18 |
void* umockalloc_calloc(size_t nmemb, size_t size); |
| 19 |
void* umockalloc_realloc(void* ptr, size_t size); |
| 20 |
void umockalloc_free(void* ptr); |
| 21 |
|
| 22 |
char* umockc_stringify_buffer(const void* bytes, size_t length); |
| 23 |
|
| 24 |
#ifdef __cplusplus |
| 25 |
} |
| 26 |
#endif |
| 27 |
|
| 28 |
#endif /* UMOCKALLOC_H */ |