update os layer

This commit is contained in:
Daniel Ledda
2025-01-02 11:02:27 +01:00
parent 5f0eaedfc6
commit 39ff16b6a6
7 changed files with 71 additions and 17 deletions

20
os_win32.cpp Normal file
View File

@@ -0,0 +1,20 @@
#ifndef OS_IMPL_WIN32_CPP
#define OS_IMPL_WIN32_CPP
#include "os.h"
#include "Windows.h"
void *osAlloc(size_t capacity) {
return VirtualAlloc(NULL, sizeof(Arena) + capacity, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
}
void osReserve(void *ptr) {
}
void osDecommit(void *ptr) {
}
void osFree(void *ptr) {
}
#endif