1#ifndef __MEMORYMANAGER_HPP
2#define __MEMORYMANAGER_HPP
4#include <stumpless/version.h>
61 static void *( *
SetMalloc(
void *( *malloc_func )(
size_t ) ) )(
size_t );
71 static void ( *
SetFree(
void ( *free_func )(
void * ) ) )(
void * );
81 static void *( *
SetRealloc(
void *( *realloc_func )(
void *,
size_t ) ) )(
void *,
size_t );
Container for memory management functions in Stumpless.
Definition MemoryManager.hpp:12
static void *(*)(size_t) SetMalloc(void *(*malloc_func)(size_t))
Sets the function used by Stumpless to allocate memory.
Definition MemoryManager.hpp:61
struct stumpless_version equivalent
Definition MemoryManager.hpp:15
static void FreeAll(void)
Frees all memory allocated internally, and performs any other necessary cleanup.
static void(*)(void *) SetFree(void(*free_func)(void *))
Sets the function used by Stumpless to free memory.
Definition MemoryManager.hpp:71
static void FreeThread(void)
Frees all memory allocated internally to the calling thread, and performs any other thread-specific c...
static void *(*)(void *, size_t) SetRealloc(void *(*realloc_func)(void *, size_t))
Sets the function used by Stumpless to reallocate memory.
Definition MemoryManager.hpp:81
MemoryManager(struct stumpless_version equivalent)
MemoryManager(struct stumpless_version *equivalent)
Definition AddressFailure.hpp:7