File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,19 @@ JPH_NAMESPACE_BEGIN
88
99#ifndef JPH_DISABLE_CUSTOM_ALLOCATOR
1010
11- // Normal memory allocation, must be at least 8 byte aligned on 32 bit platform and 16 byte aligned on 64 bit platform
11+ // / Normal memory allocation, must be at least 8 byte aligned on 32 bit platform and 16 byte aligned on 64 bit platform.
1212using AllocateFunction = void *(*)(size_t inSize);
13+
14+ // / Reallocate memory. inBlock can be nullptr in which case it must behave as a memory allocation.
1315using ReallocateFunction = void *(*)(void *inBlock, size_t inOldSize, size_t inNewSize);
16+
17+ // / Free memory. inBlock can be nullptr in which case it must do nothing.
1418using FreeFunction = void (*)(void *inBlock);
1519
16- // Aligned memory allocation
20+ // / Aligned memory allocation.
1721using AlignedAllocateFunction = void *(*)(size_t inSize, size_t inAlignment);
22+
23+ // / Free aligned memory. inBlock can be nullptr in which case it must do nothing.
1824using AlignedFreeFunction = void (*)(void *inBlock);
1925
2026// User defined allocation / free functions
You can’t perform that action at this time.
0 commit comments