phobos 0.76

This commit is contained in:
Brad Roberts 2007-09-10 03:11:55 +00:00
parent fa1bc52ba2
commit 35a12fec2f
51 changed files with 761 additions and 183 deletions

View file

@ -1,43 +0,0 @@
import object;
import std.c.stdio;
class Assert : Object
{
private:
uint linnum;
char[] filename;
this(char[] filename, uint linnum)
{
this.linnum = linnum;
this.filename = filename;
}
public:
/***************************************
* If nobody catches the Assert, this winds up
* getting called by the startup code.
*/
void print()
{
printf("Assertion Failure %s(%u)\n", (char *)filename, linnum);
}
}
/********************************************
* Called by the compiler generated module assert function.
* Builds an Assert exception and throws it.
*/
extern (C) static void _d_assert(char[] filename, uint line)
{
//printf("_d_assert(%s, %d)\n", (char *)filename, line);
Assert a = new Assert(filename, line);
//printf("assertion %p created\n", a);
throw a;
}