]> www.ginac.de Git - cln.git/blob - include/cln/malloc.h
2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
[cln.git] / include / cln / malloc.h
1 // User modifiable memory allocator.
2
3 #ifndef _CL_MALLOC_H
4 #define _CL_MALLOC_H
5
6 #include <cstdlib>
7
8 namespace cln {
9
10 // Function like malloc() which returns aligned memory of size (> 0) bytes.
11 extern void* (*malloc_hook) (size_t size);
12 // Function like free() which makes available for reuse such memory.
13 extern void (*free_hook) (void* ptr);
14
15 }  // namespace cln
16
17 #endif /* _CL_MALLOC_H */