more tests of repeat() { } macro
[svn/Cll1h/.git] / demos / repeat.c
index b6229e928c4ad2981c4b53fa3f68604311825b39..53ddf6abcf079d500242698a91e8647da9199b22 100644 (file)
@@ -14,6 +14,18 @@ program
    {
     printf("[doing this %d times] ",i);
    } 
+   repeat(0)
+   {
+    printf("[doing this 0 times] ",i);
+   }
+   repeat(-1)
+   {
+    printf("[doing this -1 times] ",i);
+   }
+   repeat(1)
+   {
+    printf("[doing this 1 times] ",i);
+   }
    print("... finished.");
   }
  }
This page took 0.093675 seconds and 4 git commands to generate.