1
2
3
4
5
6 #ifndef CMAJOR_RT_MEMORY_INCLUDED
7 #define CMAJOR_RT_MEMORY_INCLUDED
8 #include <cmajor/rt/RtApi.hpp>
9 #include <stdint.h>
10
11 extern "C" void* RtMemAlloc(int64_t size);
12 extern "C" void* RtMemAllocInfo(int64_t size, const char* info);
13 extern "C" void RtDispose(void* ptr);
14 extern "C" void RtMemFree(void* ptr);
15 extern "C" void RtMemZero(void* ptr, int64_t size);
16
17 namespace cmajor { namespace rt {
18
19 void SetDebugHeap();
20 void SetDebugAllocation(int allocation);
21
22 void InitMemory();
23 void DoneMemory();
24
25 } }
26
27 #endif // CMAJOR_RT_MEMORY_INCLUDED