From da5ce4234bf24f700fe9fe7a84cb31cbf9605914 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 16 Apr 2013 07:36:39 -0700 Subject: [PATCH] cmArray.h: Update comments. --- cmArray.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmArray.h b/cmArray.h index f42dc6a..05280c8 100644 --- a/cmArray.h +++ b/cmArray.h @@ -42,9 +42,17 @@ enum #define cmArrayPtr(t,h,i) ((t*)cmArrayGet(h,i)) + + // Return a ptr to the base of the array. #define cmArrayBase(t,h) ((t*)cmArrayGet(h,0)) + + // Return a ptr to the ith element #define cmArrayEle(t,h,i) (*(t*)cmArrayGet(h,i)) + + // Zero the ith element #define cmArrayClr(t,h,i) ((t*)cmArraySet(h,i,NULL,1)) + + // Zero elements i:i+n-1 #define cmArrayClrN(t,h,i,n) ((t*)cmArraySet(h,i,NULL,n)) #ifdef __cplusplus