forked from cory/tildefriends
Use a custom allocator for everything.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3892 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
16
src/mem.h
Normal file
16
src/mem.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void tf_mem_replace_uv_allocator();
|
||||
size_t tf_mem_get_uv_malloc_size();
|
||||
|
||||
void tf_mem_replace_tls_allocator();
|
||||
size_t tf_mem_get_tls_malloc_size();
|
||||
|
||||
size_t tf_mem_get_tf_malloc_size();
|
||||
|
||||
void* tf_malloc(size_t size);
|
||||
void* tf_realloc(void* ptr, size_t size);
|
||||
void tf_free(void* ptr);
|
||||
char* tf_strdup(const char* string);
|
Reference in New Issue
Block a user