src/cx/iterator.h

changeset 1214
ee4e33284f0c
parent 1193
cfa44f3f5e3b
--- a/src/cx/iterator.h	Sun Feb 16 12:15:27 2025 +0100
+++ b/src/cx/iterator.h	Sun Feb 16 12:17:18 2025 +0100
@@ -80,6 +80,12 @@
 };
 
 /**
+ * Convenience type definition for the base structure of an iterator.
+ * @see #CX_ITERATOR_BASE
+ */
+typedef struct cx_iterator_base_s CxIteratorBase;
+
+/**
  * Declares base attributes for an iterator.
  * Must be the first member of an iterator structure.
  */
@@ -186,7 +192,7 @@
  * This is useful for APIs that expect some iterator as an argument.
  *
  * @param iter the iterator
- * @return (@c CxIterator*) a pointer to the iterator
+ * @return (@c struct @c cx_iterator_base_s*) a pointer to the iterator
  */
 #define cxIteratorRef(iter) &((iter).base)
 

mercurial