more tests of repeat() { } macro
authorxchaos <xchaos@4bb87942-c103-4e5a-b51c-0ebff58f8515>
Sun, 21 Sep 2008 20:27:55 +0000 (20:27 +0000)
committerxchaos <xchaos@4bb87942-c103-4e5a-b51c-0ebff58f8515>
Sun, 21 Sep 2008 20:27:55 +0000 (20:27 +0000)
git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@89 4bb87942-c103-4e5a-b51c-0ebff58f8515

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.230512 seconds and 4 git commands to generate.