Files
gcc-os2/libphobos/libdruntime/rt/obj.d
Dmitriy Kuminov fbf7869a1b vendor: Import gcc-9_2_0-release.
Source URL:    git://gcc.gnu.org/git/gcc.git
Source Commit: 3e7b85061947bdc7c7465743ba90734566860821
2019-11-18 21:50:01 +03:00

36 lines
820 B
D

/**
* Contains object comparator functions called by generated code.
*
* Copyright: Copyright Digital Mars 2002 - 2010.
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright
*/
/* Copyright Digital Mars 2000 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
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);
}