BSL v1.1.1 - 64.gc92ac12
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
MLibConfig.h File Reference

M*LIB memory management configurations. More...

+ This graph shows which files directly or indirectly include this file:

Macros

#define M_USE_SMALL_NAME   0
 Force the use of M_ prefixed macros for M*LIB.
 
#define M_MEMORY_ALLOC(ctx, type)   ((type *)BSL_malloc(sizeof(type)))
 Define to override value/struct allocation.
 
#define M_MEMORY_DEL(ctx, ptr)   BSL_free(ptr)
 Define to override value/struct deallocation.
 
#define M_MEMORY_REALLOC(ctx, type, ptr, o, n)    (M_UNLIKELY((n) > SIZE_MAX / sizeof(type)) ? (type *)NULL : (type *)BSL_realloc((ptr), (n) * sizeof(type)))
 Define to override array allocation.
 
#define M_MEMORY_FREE(ctx, type, ptr, o)   BSL_free(ptr)
 Define to override array deallocation.
 

Detailed Description

M*LIB memory management configurations.

Macro Definition Documentation

◆ M_MEMORY_ALLOC

#define M_MEMORY_ALLOC (   ctx,
  type 
)    ((type *)BSL_malloc(sizeof(type)))

Define to override value/struct allocation.

See m-core.h for details.

◆ M_MEMORY_DEL

#define M_MEMORY_DEL (   ctx,
  ptr 
)    BSL_free(ptr)

Define to override value/struct deallocation.

See m-core.h for details.

◆ M_MEMORY_FREE

#define M_MEMORY_FREE (   ctx,
  type,
  ptr,
 
)    BSL_free(ptr)

Define to override array deallocation.

See m-core.h for details.

◆ M_MEMORY_REALLOC

#define M_MEMORY_REALLOC (   ctx,
  type,
  ptr,
  o,
 
)     (M_UNLIKELY((n) > SIZE_MAX / sizeof(type)) ? (type *)NULL : (type *)BSL_realloc((ptr), (n) * sizeof(type)))

Define to override array allocation.

See m-core.h for details.

◆ M_USE_SMALL_NAME

#define M_USE_SMALL_NAME   0

Force the use of M_ prefixed macros for M*LIB.