Added copy of druntime from DMD 2.020 modified for LDC.

This commit is contained in:
Tomas Lindquist Olsen
2008-11-11 01:52:37 +01:00
parent c4c1c1d72e
commit d56f952a84
175 changed files with 48069 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// Copyright (c) 2002 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// www.digitalmars.com
module rt.obj;
extern (C):
/********************************
* Compiler helper for operator == for class objects.
*/
int _d_obj_eq(Object o1, Object o2)
{
return o1 is o2 || (o1 && o1.opEquals(o2));
}
/********************************
* Compiler helper for operator <, <=, >, >= for class objects.
*/
int _d_obj_cmp(Object o1, Object o2)
{
return o1.opCmp(o2);
}