Changeset 371
- Timestamp:
- 06/30/08 08:10:46 (5 months ago)
- Files:
-
- trunk/tools/tools/base.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/tools/base.d
r363 r371 1057 1057 mixin(Operator!("or", "return OrSet(lhs, rhs); ")); 1058 1058 1059 template IfBranch(T...) { 1060 static if (T.length == 1) const string IfBranch = T[0]; 1061 else const string IfBranch = "if ("~T[0]~") { 1062 "~Replace!(IfBranch!(T[4..$]), T[1], T[2])~" 1063 } else { 1064 "~Replace!(IfBranch!(T[4..$]), T[1], T[3])~" 1065 }"; 1066 } 1067 1059 1068 import tools.log: logln; 1060 1069 unittest {
