|
clibs
Tiny but handy utility libraries for C
|
Common control structures. More...
#include <stddef.h>
Go to the source code of this file.
Macros | |
| #define | TIMES(count, block) |
| Repeat a block of code a given number of times. | |
Common control structures.
However, this pattern can easily lead to code that is difficult to read, debug, and maintain. Because of this risk, we will NOT introduce any additional "language block" style macros in this project.
This macro exists purely as a technical demonstration of what is possible in C, not as a recommended pattern for general use.
| #define TIMES | ( | count, | |
| block ) |
Repeat a block of code a given number of times.
| count | Number of repetitions |
| block | Code block to execute |