Mon, 18 Apr 2022 16:56:29 +0200
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)++) /* ----------------------