13 lines
391 B
C
13 lines
391 B
C
|
#pragma once
|
||
|
#include <luna/Result.h>
|
||
|
|
||
|
extern Result<void*> allocate_pages_impl(usize count);
|
||
|
extern Result<void> release_pages_impl(void* address, usize count);
|
||
|
|
||
|
Result<void*> malloc_impl(usize size, bool should_scrub = true);
|
||
|
Result<void*> calloc_impl(usize nmemb, usize size);
|
||
|
Result<void*> realloc_impl(void* ptr, usize size);
|
||
|
Result<void> free_impl(void* ptr);
|
||
|
|
||
|
void dump_heap_usage();
|