csnip  0.1
Macros
arr.h File Reference

Dynamic arrays. More...

#include <stddef.h>
#include <csnip/err.h>
#include <csnip/mem.h>
#include <csnip/util.h>
#include <csnip/preproc.h>
Include dependency graph for arr.h:

Go to the source code of this file.

Macros

#define csnip_arr_Init(a, n, cap, initial_cap, err)
 Initialize an array. More...
 
#define csnip_arr_Reserve(a, n, cap, least_cap, err)
 Reserve space for members to be added. More...
 
#define csnip_arr_Push(a, n, cap, value, err)
 Append a new value at the end of the array. More...
 
#define csnip_arr_Pop(a, n, cap, err)
 Delete the value at the end of the array. More...
 
#define csnip_arr_InsertAt(a, n, cap, index, val, err)
 Insert a new member at a given position in the array. More...
 
#define csnip_arr_DeleteAt(a, n, cap, index, err)
 Remove an array member at a given index. More...
 
#define csnip_arr_Free(a, n, cap)
 Delete an array. More...
 
#define CSNIP_ARR_DECL_FUNCS(scope, prefix, val_type, gen_args)
 Declare array managment functions. More...
 
#define CSNIP_ARR_DEF_FUNCS(scope, prefix, val_type, gen_args, a, n, cap, err)
 Define dynamic array managment functions. More...