|
@@ -42,9 +42,17 @@ enum
|
42
|
42
|
|
43
|
43
|
|
44
|
44
|
#define cmArrayPtr(t,h,i) ((t*)cmArrayGet(h,i))
|
|
45
|
+
|
|
46
|
+ // Return a ptr to the base of the array.
|
45
|
47
|
#define cmArrayBase(t,h) ((t*)cmArrayGet(h,0))
|
|
48
|
+
|
|
49
|
+ // Return a ptr to the ith element
|
46
|
50
|
#define cmArrayEle(t,h,i) (*(t*)cmArrayGet(h,i))
|
|
51
|
+
|
|
52
|
+ // Zero the ith element
|
47
|
53
|
#define cmArrayClr(t,h,i) ((t*)cmArraySet(h,i,NULL,1))
|
|
54
|
+
|
|
55
|
+ // Zero elements i:i+n-1
|
48
|
56
|
#define cmArrayClrN(t,h,i,n) ((t*)cmArraySet(h,i,NULL,n))
|
49
|
57
|
|
50
|
58
|
#ifdef __cplusplus
|