2022-05-19 01:51:26 -07:00
|
|
|
#ifndef MEMORY_MANAGER_H
|
|
|
|
#define MEMORY_MANAGER_H
|
|
|
|
|
|
|
|
#include "memory_defs.h"
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
void memoryManagerSetProcs(MallocProc* mallocProc, ReallocProc* reallocProc, FreeProc* freeProc);
|
|
|
|
void* internal_malloc_safe(size_t size, const char* file, int line);
|
|
|
|
void* internal_realloc_safe(void* ptr, size_t size, const char* file, int line);
|
|
|
|
void internal_free_safe(void* ptr, const char* file, int line);
|
|
|
|
void* internal_calloc_safe(int count, int size, const char* file, int line);
|
|
|
|
char* strdup_safe(const char* string, const char* file, int line);
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* MEMORY_MANAGER_H */
|