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