src/cx/utils.h

changeset 527
08539b8273fa
parent 509
0d3c6075f82c
child 628
1e2be40f0cb5
equal deleted inserted replaced
526:b070ef465313 527:08539b8273fa
44 44
45 #ifdef __cplusplus 45 #ifdef __cplusplus
46 extern "C" { 46 extern "C" {
47 #endif 47 #endif
48 48
49 /**
50 * Convenience macro for a for loop that counts from zero to n-1.
51 */
49 #define cx_for_n(varname, n) for (size_t varname = 0 ; (varname) < (n) ; (varname)++) 52 #define cx_for_n(varname, n) for (size_t varname = 0 ; (varname) < (n) ; (varname)++)
50 53
51 /* ---------------------- 54 /* ----------------------
52 * cx_szmul() definition. 55 * cx_szmul() definition.
53 * ---------------------- */ 56 * ---------------------- */

mercurial