# HG changeset patch
# User Mike Becker <universe@uap-core.de>
# Date 1650293789 -7200
# Node ID 08539b8273fab8e917ec48328b62b3f0694c467b
# Parent  b070ef465313a7bfc188b1a9c30deac409070630
add doc for cx_for_n

diff -r b070ef465313 -r 08539b8273fa src/cx/utils.h
--- 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)++)
 
 /* ----------------------