blob: be5df27fa2e8b7c381f1060c9f91af6b79d116b3 [file] [log] [blame]
Ben Elliston88e17b51998-09-21 01:22:07 +00001/* The implementation of class Object for Objective-C.
Jakub Jelinek85ec4fe2018-01-03 11:03:58 +01002 Copyright (C) 1993-2018 Free Software Foundation, Inc.
Ben Elliston88e17b51998-09-21 01:22:07 +00003
Nathanael Nerode6c82ad22003-05-23 20:04:58 +00004This file is part of GCC.
Ben Elliston88e17b51998-09-21 01:22:07 +00005
Nathanael Nerode6c82ad22003-05-23 20:04:58 +00006GCC is free software; you can redistribute it and/or modify it
Ben Elliston88e17b51998-09-21 01:22:07 +00007under the terms of the GNU General Public License as published by the
Jakub Jelinek748086b2009-04-09 17:00:19 +02008Free Software Foundation; either version 3, or (at your option) any
Ben Elliston88e17b51998-09-21 01:22:07 +00009later version.
10
Nathanael Nerode6c82ad22003-05-23 20:04:58 +000011GCC is distributed in the hope that it will be useful, but WITHOUT
Ben Elliston88e17b51998-09-21 01:22:07 +000012ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14License for more details.
15
Jakub Jelinek748086b2009-04-09 17:00:19 +020016Under Section 7 of GPL version 3, you are granted additional
17permissions described in the GCC Runtime Library Exception, version
183.1, as published by the Free Software Foundation.
Ben Elliston88e17b51998-09-21 01:22:07 +000019
Jakub Jelinek748086b2009-04-09 17:00:19 +020020You should have received a copy of the GNU General Public License and
21a copy of the GCC Runtime Library Exception along with this program;
22see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23<http://www.gnu.org/licenses/>. */
Ben Elliston88e17b51998-09-21 01:22:07 +000024
Nicola Pero6dead242010-09-11 22:47:14 +000025#include "objc-private/common.h"
Ben Elliston88e17b51998-09-21 01:22:07 +000026#include "objc/Object.h"
Nicola Pero80e4b9e2011-06-07 19:37:35 +000027#include "objc/runtime.h"
Ben Elliston88e17b51998-09-21 01:22:07 +000028
Ben Elliston88e17b51998-09-21 01:22:07 +000029@implementation Object
30
Nicola Pero002d4672010-12-14 23:36:36 +000031- (Class)class
32{
Nicola Pero80e4b9e2011-06-07 19:37:35 +000033 return object_getClass (self);
Nicola Pero002d4672010-12-14 23:36:36 +000034}
35
36- (BOOL)isEqual: (id)anObject
37{
38 return self == anObject;
39}
40
41@end