106 if (this->code == that->
code) {
146#pragma mark - Class lifecycle
174 .instanceSize =
sizeof(
Error),
175 .interfaceOffset = offsetof(
Error, interface),
176 .interfaceSize =
sizeof(ErrorInterface),
static Array * init(Array *self)
ident release(ident obj)
Atomically decrement the given Object's reference count. If the resulting reference count is 0,...
Class * _initialize(const ClassDef *def)
Initializes the given Class.
ident retain(ident obj)
Atomically increment the given Object's reference count.
#define alloc(type)
Allocate and initialize and instance of type.
#define super(type, obj, method,...)
static Error * initWithDomain(Error *self, String *domain, int code, String *message)
static bool isEqual(const Object *self, const Object *other)
static String * description(const Object *self)
static void dealloc(Object *self)
static Object * copy(const Object *self)
static void initialize(Class *clazz)
static int hash(const Object *self)
Encapsulation for error conditions.
int HashForInteger(int hash, const long integer)
Accumulates the hash value of integer into hash.
int HashForObject(int hash, const ident obj)
Accumulates the hash value of object into hash.
Utilities for calculating hash values.
#define HASH_SEED
The hash seed value.
static void appendFormat(String *self, const char *fmt,...)
#define do_once(once, block)
Executes the given block at most one time.
ClassDefs are passed to _initialize via an archetype to initialize a Class.
The runtime representation of a Class.
ident interface
The interface of the Class.
Encapsulation for error conditions.
String * message
The error message.
String * domain
The error domain.
Object is the root Class of The Objectively Class hierarchy.
Class * clazz
Every instance of Object begins with a pointer to its Class.
Object * copy(const Object *self)
Creates a shallow copy of this Object.
int hash(const Object *self)
void dealloc(Object *self)
Frees all resources held by this Object.
char * chars
The backing null-terminated UTF-8 encoded character array.