Mercurial > projects > ddmd
comparison dmd/StaticAssert.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
66 error("%s", buf.toChars()); | 66 error("%s", buf.toChars()); |
67 } | 67 } |
68 else | 68 else |
69 error("(%s) is false", exp.toChars()); | 69 error("(%s) is false", exp.toChars()); |
70 | 70 |
71 if(sc.tinst) | 71 if (sc.tinst) |
72 sc.tinst.printInstantiationTrace(); | 72 sc.tinst.printInstantiationTrace(); |
73 | 73 |
74 if (!global.gag) { | 74 if (!global.gag) |
75 fatal(); | 75 fatal(); |
76 } | |
77 } | 76 } |
78 else if (!e.isBool(true)) | 77 else if (!e.isBool(true)) |
79 { | 78 { |
80 error("(%s) is not evaluatable at compile time", exp.toChars()); | 79 error("(%s) is not evaluatable at compile time", exp.toChars()); |
81 } | 80 } |