Mercurial > projects > ldc
view lphobos/internal/contract.d @ 1588:71ad691baeb2
Hack to make compiling the tango 0.99.8 runtime work.
The gc has no module statements and the new frontend fails to find
the imports. So I add an explicit include path to the runtime gc
directory.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 10:54:40 +0100 |
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~"\""); }