2
3
4
5
6
7
8
9
10
12#ifndef GIMBAL_ARRAY_DEQUE_H
13#define GIMBAL_ARRAY_DEQUE_H
17#ifndef GBL_ARRAY_DEQUE_FORCE_POW2
18# define GBL_ARRAY_DEQUE_FORCE_POW2 1
21#define GBL_SELF_TYPE GblArrayDeque
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
95 GblRingBuffer ringBuffer;
101 uint16_t elementSize,
104 const void* pInitialData,
143#define GblArrayDeque_construct(...)
144 GblArrayDeque_constructDefault_
(__VA_ARGS__)
145#define GblArrayDeque_constructDefault_(...)
147#define GblArrayDeque_constructDefault__(self, elem, cap, size, data, ctx, ...)
148 (GblArrayDeque_construct
)(self, elem, cap, size, data, ctx)
150#define GblArrayDeque_insert(...)
151 GblArrayDeque_insertDefault_
(__VA_ARGS__)
152#define GblArrayDeque_insertDefault_(...)
153 GblArrayDeque_insertDefault__
(__VA_ARGS__, 1
)
154#define GblArrayDeque_insertDefault__(self, pos, data, count, ...)
155 (GblArrayDeque_insert
(self, pos, data, count))
157#define GblArrayDeque_erase(...)
158 GblArrayDeque_eraseDefault_
(__VA_ARGS__)
159#define GblArrayDeque_eraseDefault_(...)
160 GblArrayDeque_eraseDefault__
(__VA_ARGS__, 1
)
161#define GblArrayDeque_eraseDefault__(self, pos, count, ...)
162 (GblArrayDeque_eraseDefault(self, pos, count))
#define GBL_PRIVATE_BEGIN
#define GBL_PRIVATE_END
Private data structure.
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
Circular array-based double-ended queue container.