#ifndef OS_IMPL_WIN32_CPP #define OS_IMPL_WIN32_CPP #include "os.h" #include "Windows.h" void *os_alloc(size_t commitSize) { return VirtualAlloc(NULL, commitSize, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE); } void os_reserve(void *ptr) { } void os_decommit(void *ptr) { } void os_free(void *ptr, size_t size) { VirtualFree(ptr, NULL, MEM_RELEASE); } #endif