| 90 | #if 0 |
| 91 | |
| 92 | void* WebPlatform::Allocate(uint64 size, uint64 alignment) |
| 93 | { |
| 94 | void* ptr = nullptr; |
| 95 | if (alignment && size) |
| 96 | { |
| 97 | // Alignment always has to be power of two |
| 98 | ASSERT_LOW_LAYER((alignment & (alignment - 1)) == 0); |
| 99 | ptr = emscripten_builtin_memalign(alignment, size); |
| 100 | if (!ptr) |
| 101 | OutOfMemory(); |
| 102 | #if COMPILE_WITH_PROFILER |
| 103 | OnMemoryAlloc(ptr, size); |
| 104 | #endif |
| 105 | } |
| 106 | return ptr; |
| 107 | } |
| 108 | |
| 109 | void WebPlatform::Free(void* ptr) |
| 110 | { |
no outgoing calls
no test coverage detected