Ylva And Malin
Macros | Functions
ym_memory.c File Reference
#include <ym_memory.h>
#include <ym_log.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ym_assert.h>
#include <ym_allocator.h>
Include dependency graph for ym_memory.c:

Macros

#define YM_MEMORY_DEFAULT_SIZE   16384
 
#define YM_MEMORY_SIZE   YM_MEMORY_DEFAULT_SIZE
 

Functions

ym_errc ym_mem_init ()
 
ym_errc ym_mem_shutdown ()
 
voidym_mem_reg_alloc (ym_mem_reg_id id, int size, YM_UNUSED char *file, YM_UNUSED int line)
 
void ym_mem_reg_dealloc (ym_mem_reg_id id, int size, void *ptr, YM_UNUSED char *file, YM_UNUSED int line)
 

Macro Definition Documentation

#define YM_MEMORY_DEFAULT_SIZE   16384
#define YM_MEMORY_SIZE   YM_MEMORY_DEFAULT_SIZE

Function Documentation

ym_errc ym_mem_init ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void* ym_mem_reg_alloc ( ym_mem_reg_id  id,
int  size,
YM_UNUSED char *  file,
YM_UNUSED int  line 
)

Here is the call graph for this function:

void ym_mem_reg_dealloc ( ym_mem_reg_id  id,
int  size,
void ptr,
YM_UNUSED char *  file,
YM_UNUSED int  line 
)

Here is the call graph for this function:

ym_errc ym_mem_shutdown ( )

Here is the call graph for this function:

Here is the caller graph for this function: