67 $(desc,
appendFormat,
"%ls: %d", this->domain->chars, this->code);
106 if (this->code == that->
code) {
146#pragma mark - Class lifecycle
174 .instanceSize =
sizeof(
Error),
175 .interfaceOffset = offsetof(
Error, interface),
176 .interfaceSize =
sizeof(ErrorInterface),
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 void initialize(Class *clazz)
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.
#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.
Condition * init(Condition *self)
Initializes this Condition.
Encapsulation for error conditions.
Class * _Error(void)
The Error archetype.
String * message
The error message.
String * domain
The error domain.
Error * initWithDomain(Error *self, String *domain, int code, String *message)
Initializes an Error with the given details.
void appendFormat(MutableString *self, const char *fmt,...)
Appends the specified formatted string.
Object is the root Class of The Objectively Class hierarchy.
Class * clazz
Every instance of Object begins with a pointer to its Class.
Class * _Object(void)
The Object archetype.
Object * copy(const Object *self)
Creates a shallow copy of this Object.
String * description(const Object *self)
_Bool isEqual(const Object *self, const Object *other)
Tests equality of the other Object.
int hash(const Object *self)
void dealloc(Object *self)
Frees all resources held by this Object.