diff options
Diffstat (limited to 'MemoryManager.c')
| -rw-r--r-- | MemoryManager.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MemoryManager.c b/MemoryManager.c index dd3a7fc..3f8d054 100644 --- a/MemoryManager.c +++ b/MemoryManager.c @@ -38,6 +38,14 @@ std_destroy(MemoryManager *mm) { return R_Unavailable; } +const MemoryManager M_STD = { + .alloc = &std_alloc, + .realloc = &std_realloc, + .free = &std_free, + .destroy = &std_destroy, + .priv = NULL, + }; + MemoryManager M_std() { return (MemoryManager){ @@ -45,6 +53,7 @@ M_std() { .realloc = &std_realloc, .free = &std_free, .destroy = &std_destroy, + .priv = NULL, }; } |
