GIT.Harvie.CZ
/
svn
/
Cll1h
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more tests of repeat() { } macro
[svn/Cll1h/.git]
/
demos
/
repeat.c
diff --git
a/demos/repeat.c
b/demos/repeat.c
index b6229e928c4ad2981c4b53fa3f68604311825b39..53ddf6abcf079d500242698a91e8647da9199b22 100644
(file)
--- a/
demos/repeat.c
+++ b/
demos/repeat.c
@@
-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.