Objectively
Ultra-lightweight object oriented framework for GNU C.
Loading...
Searching...
No Matches
PointerArray.h File Reference

Growable arrays of raw C pointers. More...

Go to the source code of this file.

Data Structures

struct  PointerArray
 Growable arrays of raw C pointers. More...
 

Functions

OBJECTIVELY_EXPORT Class_PointerArray (void)
 

Detailed Description

Growable arrays of raw C pointers.

Definition in file PointerArray.h.

Function Documentation

◆ _PointerArray()

OBJECTIVELY_EXPORT Class * _PointerArray ( void  )

Definition at line 181 of file PointerArray.c.

181 {
182 static Class *clazz;
183 static Once once;
184
185 do_once(&once, {
186 clazz = _initialize(&(const ClassDef) {
187 .name = "PointerArray",
188 .superclass = _Object(),
189 .instanceSize = sizeof(PointerArray),
190 .interfaceOffset = offsetof(PointerArray, interface),
191 .interfaceSize = sizeof(PointerArrayInterface),
193 });
194 });
195
196 return clazz;
197}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition Class.c:86
Class * _Object(void)
Definition Object.c:136
static void initialize(Class *clazz)
long Once
The Once type.
Definition Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition Class.h:41
The runtime representation of a Class.
Definition Class.h:95
Growable arrays of raw C pointers.