Mercurial > projects > ldc
view lphobos/internal/contract.d @ 1623:1d48eced441f
Merge DMD r317: bugzilla 3611 Enum forward referencing regression
---
dmd/enum.c | 17 +++++++++++++++--
dmd/mtype.c | 4 ++++
2 files changed, 19 insertions(+), 2 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:22 -0300 |
parents | 373489eeaf90 |
children |
line wrap: on
line source
module internal.contract; import std.string: toString; extern(C): void exit(int); /*void _d_assert(bool cond, uint line, char[] msg) { if (!cond) { printf("Aborted(%u): %.*s\n", line, msg.length, msg.ptr); exit(1); } }*/ void _d_assert(string file, uint line) { throw new Exception(file~":"~.toString(line)~": Assertion failed!"); } void _d_assert_msg(string msg, string file, uint line) { throw new Exception(file~": "~.toString(line)~": Assertion failed: \""~msg~"\""); }