add doc for cx_for_n

Mon, 18 Apr 2022 16:56:29 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 18 Apr 2022 16:56:29 +0200
changeset 527
08539b8273fa
parent 526
b070ef465313
child 528
4fbfac557df8

add doc for cx_for_n

src/cx/utils.h file | annotate | diff | comparison | revisions
--- a/src/cx/utils.h	Mon Apr 18 16:29:14 2022 +0200
+++ b/src/cx/utils.h	Mon Apr 18 16:56:29 2022 +0200
@@ -46,6 +46,9 @@
 extern "C" {
 #endif
 
+/**
+ * Convenience macro for a for loop that counts from zero to n-1.
+ */
 #define cx_for_n(varname, n) for (size_t varname = 0 ; (varname) < (n) ; (varname)++)
 
 /* ----------------------

mercurial