1// User modifiable memory allocator.
2
3#ifndef _CL_MALLOC_H
4#define _CL_MALLOC_H
5
6#include <cstdlib>
7
8namespace cln {
9
10// Function like malloc() which returns aligned memory of size (> 0) bytes.
11extern void* (*malloc_hook) (size_t size);
12// Function like free() which makes available for reuse such memory.
13extern void (*free_hook) (void* ptr);
14
15} // namespace cln
16
17#endif /* _CL_MALLOC_H */
18