Просмотр исходного кода

cmStack.h : Added comments.

master
kevin 10 лет назад
Родитель
Сommit
1431685ef3
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      cmStack.h

+ 3
- 0
cmStack.h Просмотреть файл

@@ -42,12 +42,15 @@ extern "C" {
42 42
   const void* cmStackTop(     cmStackH_t h );
43 43
 
44 44
   // Set the value of 'dataEleCnt' elements on the stack.
45
+  // The top element is at index cmStackCount() - 1.
45 46
   cmStRC_t    cmStackSet(     cmStackH_t h, unsigned index, const void* data, unsigned dataEleCnt );
46 47
 
47 48
   // Copy 'dataEleCnt' elements into the buffer pointed to by 'data'.
49
+  // The top element is at index cmStackCount() - 1.
48 50
   cmStRC_t    cmStackGetN(    cmStackH_t h, unsigned index, void* data, unsigned dataEleCnt );
49 51
 
50 52
   // Return a pointer to a single element on the stack.
53
+  // The top element is at index cmStackCount() - 1.
51 54
   const void* cmStackGet(     cmStackH_t h, unsigned index );
52 55
 
53 56
   // Convert the internal representation of the stack to a linear array and return

Загрузка…
Отмена
Сохранить