multiple-evalution-of-args-safe versions of repeat() { } and for_range() { } macros
[svn/Cll1h/.git] / demos / repeat.c
... / ...
CommitLineData
1#include "cll1.h"
2
3program
4{
5 int i=2;
6
7 repeat(1)
8 {
9 print("This is demonstration, that nesting of C<<1 repeat(N) { ... } flow-control macro is completely safe:");
10 repeat(i++)
11 {
12 echo("Outer loop is supposed to be done twice: ");
13 repeat(i)
14 {
15 printf("[doing this %d times] ",i);
16 }
17 print("... finished.");
18 }
19 }
20}
This page took 0.113268 seconds and 4 git commands to generate.