mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-29 02:20:04 +02:00
[svn r5] Initial commit. Most things are very rough.
This commit is contained in:
13
lphobos/internal/contract.d
Normal file
13
lphobos/internal/contract.d
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user