gwion-util
utilities for the Gwion project
Loading...
Searching...
No Matches
container.h
Go to the documentation of this file.
1
5#ifndef _CONTAINER
6#define _CONTAINER
7
8#define MAP_CAP 8 /*< base container capacity */
9#define OFFSET 2 /*< size of container offset */
10#define VLEN(v) (v)->ptr[0] /*< length */
11#define VCAP(v) (v)->ptr[1] /*< capacity */
12#define VPTR(v, i) (v)->ptr[OFFSET + (i)] /* pointer to data */
13
14typedef uintptr_t vtype; /*< base type for containers, size of a pointer */
15
16#include "vector.h"
17#include "m_vector.h"
18#include "map.h"
19#include "scope.h"
20#endif
uintptr_t vtype
Definition container.h:14
Map functions.
scope functions
vector functions