瀏覽代碼

cmArray.h: Update comments.

master
kevin 11 年之前
父節點
當前提交
da5ce4234b
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      cmArray.h

+ 8
- 0
cmArray.h 查看文件

@@ -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

Loading…
取消
儲存