Mercurial > projects > ddmd
comparison dmd/TemplateValueParameter.d @ 50:adf6f7f216ea
CondExp.toCBuffer
IsExp.toCBuffer
TemplateValueParameter.toCBuffer
Dsymbol.search
TemplateDeclaration.overloadInsert bug fixed
author | korDen |
---|---|
date | Sat, 21 Aug 2010 10:38:26 +0400 |
parents | ea4769860460 |
children | 4290d870944a |
comparison
equal
deleted
inserted
replaced
49:0aa7d1437ada | 50:adf6f7f216ea |
---|---|
109 assert(false); | 109 assert(false); |
110 } | 110 } |
111 | 111 |
112 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 112 void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
113 { | 113 { |
114 assert(false); | 114 valType.toCBuffer(buf, ident, hgs); |
115 if (specValue) | |
116 { | |
117 buf.writestring(" : "); | |
118 specValue.toCBuffer(buf, hgs); | |
119 } | |
120 if (defaultValue) | |
121 { | |
122 buf.writestring(" = "); | |
123 defaultValue.toCBuffer(buf, hgs); | |
124 } | |
115 } | 125 } |
116 | 126 |
117 Object specialization() | 127 Object specialization() |
118 { | 128 { |
119 return specValue; | 129 return specValue; |