2022-08-29 15:01:03 +02:00
|
|
|
#include "../cdb_sustem.h"
|
2022-08-27 19:53:27 +02:00
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
// returns NULL, if there is no memroy left or an error occured
|
|
|
|
void * sus_heapAlloc(size_t bytes){
|
|
|
|
return HeapAlloc(GetProcessHeap(), 0, bytes); //generic call to the windows heapAlloc function
|
|
|
|
}
|
|
|
|
|
|
|
|
// returns NULL, if there is no memroy left or an error occured
|
|
|
|
void * sus_heapResize(void * memroy, size_t newBytes){
|
2022-08-27 19:55:26 +02:00
|
|
|
return HeapReAlloc(GetProcessHeap(), 0, memroy, newBytes);
|
2022-08-27 19:53:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// what should this function do, if an error occurse..
|
|
|
|
void sus_heapFree(void * memroy){
|
|
|
|
HeapFree(GetProcessHeap(), 0, memroy);
|
|
|
|
}
|