Ylva And Malin
Data Structures | Macros | Enumerations | Functions
ym_memory.h File Reference
#include <stdint.h>
#include <stdatomic.h>
#include <ym_core.h>
#include <ym_memory_regions.h>
Include dependency graph for ym_memory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ym_mem_region
 

Macros

#define YM_MALLOC(reg_id, size, usage)   ym_mem_reg_alloc(reg_id, size, __FILE__, __LINE__);
 
#define YM_FREE(reg_id, size, ptr)   ym_mem_reg_dealloc(reg_id, size, ptr, __FILE__, __LINE__);
 

Enumerations

enum  ym_mem_usage {
  ym_mem_usage_static,
  ym_mem_usage_dynamic,
  ym_mem_usage_scoped
}
 

Functions

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

Macro Definition Documentation

#define YM_FREE (   reg_id,
  size,
  ptr 
)    ym_mem_reg_dealloc(reg_id, size, ptr, __FILE__, __LINE__);
#define YM_MALLOC (   reg_id,
  size,
  usage 
)    ym_mem_reg_alloc(reg_id, size, __FILE__, __LINE__);

Enumeration Type Documentation

Enumerator
ym_mem_usage_static 
ym_mem_usage_dynamic 
ym_mem_usage_scoped 

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,
char *  file,
int  line 
)
void ym_mem_reg_dealloc ( ym_mem_reg_id  id,
int  size,
void ptr,
char *  file,
int  line 
)
ym_errc ym_mem_shutdown ( )

Here is the call graph for this function:

Here is the caller graph for this function: