| 104 | void JKRHeap::destroy() { do_destroy(); } |
| 105 | |
| 106 | void *JKRHeap::alloc(u32 byteCount, int alignment, JKRHeap *heap) |
| 107 | { |
| 108 | void *memory; |
| 109 | if (heap) |
| 110 | { |
| 111 | return heap->alloc(byteCount, alignment); |
| 112 | } |
| 113 | else if (sCurrentHeap) |
| 114 | { |
| 115 | return sCurrentHeap->alloc(byteCount, alignment); |
| 116 | } |
| 117 | return nullptr; |
| 118 | } |
| 119 | |
| 120 | void *JKRHeap::alloc(u32 byteCount, int alignment) |
| 121 | { |
no outgoing calls
no test coverage detected