Mercurial > projects > ldc
view lphobos/internal/contract.d @ 150:2c336566ffed trunk
[svn r156] added a testcase for the most annoying bug ever
author | lindquist |
---|---|
date | Mon, 24 Mar 2008 20:05:44 +0100 |
parents | 61615fa85940 |
children | 373489eeaf90 |
line wrap: on
line source
module internal.contract; 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); } }