Starting refactor now.

This commit is contained in:
2023-11-01 22:03:16 -05:00
parent c5cfc31436
commit d530210bed
18 changed files with 133 additions and 229 deletions

View File

@ -34,7 +34,10 @@ static void * memoryCallRealloc(void *p, size_t newSize) {
* @param size Size of the array you wish to buffer.
* @return Pointer to the space in memory to use.
*/
void * memoryAllocate(const size_t size);
template<typename T>
T * memoryAllocate(const size_t size) {
return (T*)memoryCallMalloc(size * sizeof(T));
}
/**
* Allocate space in memory, where all values are set to 0 (in binary space).