view lphobos/internal/contract.d @ 38:27b2f40bdb58 trunk

[svn r42] Disabled the extensive logging by default. Use the -vv flag to get it back. Fiddled a bit the the testing system. Added a very simple SDL graphics demo.
author lindquist
date Wed, 10 Oct 2007 06:16:48 +0200
parents c53b6e3fe49a
children 61615fa85940
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);
        exit(1);
    }
}