(/usr/bin/git
2025-08-01, commit: e46fc091)
Header declaring a mock function for malloc().
More...
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Header declaring a mock function for malloc().
◆ __real_malloc()
| void * __real_malloc |
( |
size_t |
size | ) |
|
◆ __wrap_malloc()
| void * __wrap_malloc |
( |
size_t |
size | ) |
|
Mock function for malloc().
If crinitMockMallocEnabled is true then it checks that the right parameters are given and return a preset pointer. If crinitMockMallocEnabled is false then the call is forwarded to the genuine free method.
◆ crinitMockMallocEnabled
| bool crinitMockMallocEnabled |
|
extern |