comparison dmd/TryCatchStatement.d @ 174:af724d3510d7

lot os toCBuffer methods implemented moved shared Type.* stuff into Global
author korDen
date Sun, 10 Oct 2010 03:47:23 +0400
parents e28b18c23469
children e3afd1303184
comparison
equal deleted inserted replaced
173:d237b38b5858 174:af724d3510d7
204 block_next(blx,cast(BC)blx.curblock.BC, breakblock); 204 block_next(blx,cast(BC)blx.curblock.BC, breakblock);
205 } 205 }
206 206
207 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) 207 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
208 { 208 {
209 assert(false); 209 buf.writestring("try");
210 buf.writenl();
211 if (body_)
212 body_.toCBuffer(buf, hgs);
213 for (size_t i = 0; i < catches.dim; i++)
214 {
215 Catch c = cast(Catch)catches.data[i];
216 c.toCBuffer(buf, hgs);
217 }
210 } 218 }
211 219
212 override TryCatchStatement isTryCatchStatement() { return this; } 220 override TryCatchStatement isTryCatchStatement() { return this; }
213 } 221 }