#include <assert.h>
#include "Null.h"
Go to the source code of this file.
◆ _Class
◆ _Null()
Definition at line 83 of file Null.c.
83 {
86
89 .name = "Null",
91 .instanceSize =
sizeof(
Null),
92 .interfaceOffset = offsetof(
Null, interface),
93 .interfaceSize = sizeof(NullInterface),
96 });
97 });
98
99 return clazz;
100}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
static void destroy(Class *clazz)
static void initialize(Class *clazz)
#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.
Class * _Object(void)
The Object archetype.
◆ copy()
◆ destroy()
static void destroy |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::destroy(Class *)
Definition at line 74 of file Null.c.
74 {
75
77}
ident release(ident obj)
Atomically decrement the given Object's reference count. If the resulting reference count is 0,...
◆ initialize()
static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 64 of file Null.c.
64 {
65
67
69}
ident interface
The interface of the Class.
Object * copy(const Object *self)
Creates a shallow copy of this Object.
◆ null()
static Null * null |
( |
void |
| ) |
|
|
static |
Definition at line 48 of file Null.c.
48 {
49
51
54 });
55
57}
#define alloc(type)
Allocate and initialize and instance of type.
Condition * init(Condition *self)
Initializes this Condition.
◆ _null