18 lines
609 B
C++
18 lines
609 B
C++
#ifndef MEMORY_MANAGER_H
|
|
#define MEMORY_MANAGER_H
|
|
|
|
#include "memory_defs.h"
|
|
|
|
namespace fallout {
|
|
|
|
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);
|
|
|
|
} // namespace fallout
|
|
|
|
#endif /* MEMORY_MANAGER_H */
|