18 lines
588 B
C
18 lines
588 B
C
#include "../cdb_sustem.h"
|
|
#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){
|
|
return HeapReAlloc(GetProcessHeap(), 0, memroy, newBytes);
|
|
}
|
|
|
|
// what should this function do, if an error occurse..
|
|
void sus_heapFree(void * memroy){
|
|
HeapFree(GetProcessHeap(), 0, memroy);
|
|
}
|