Context detection, compiler abstractions, utility macros, and data structures.
Core fixed-width type aliases and memory size constants.
#define C_LINKAGE_END
Closes a C linkage block for C++ compilers (Empty in C).
#define C_LINKAGE_BEGIN
Opens a C linkage block for C++ compilers (Empty in C).
void mem_os_release(void *ptr, usize size)
Releases a reserved virtual address block entirely back to the OS.
b32 mem_os_commit(void *ptr, usize size)
Commits physical RAM to a previously reserved virtual address block.
void * mem_os_reserve(usize size)
Reserves a contiguous block of virtual address space.
usize mem_os_page_size(void)
Retrieves the operating system's virtual memory page size.
void mem_os_decommit(void *ptr, usize size)
Decommits physical RAM, returning it to the OS.