Mercurial > projects > ddmd
comparison dmd/ThrowStatement.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 | 60bb0fe4563e |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
173:d237b38b5858 | 174:af724d3510d7 |
---|---|
55 return this; | 55 return this; |
56 } | 56 } |
57 | 57 |
58 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 58 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
59 { | 59 { |
60 assert(false); | 60 buf.printf("throw "); |
61 exp.toCBuffer(buf, hgs); | |
62 buf.writeByte(';'); | |
63 buf.writenl(); | |
61 } | 64 } |
62 | 65 |
63 override BE blockExit() | 66 override BE blockExit() |
64 { | 67 { |
65 return BE.BEthrow; // obviously | 68 return BE.BEthrow; // obviously |