Objectively
Object oriented framework for C.
Loading...
Searching...
No Matches
Boole.h File Reference

A wrapper for placing boolean primitives into collections, etc. More...

Go to the source code of this file.

Data Structures

struct  Boole
 A wrapper for placing boolean primitives into collections, etc. More...
 

Functions

OBJECTIVELY_EXPORT Class * _Boole (void)
 

Detailed Description

A wrapper for placing boolean primitives into collections, etc.

Definition in file Boole.h.

Function Documentation

◆ _Boole()

OBJECTIVELY_EXPORT Class * _Boole ( void  )

Definition at line 125 of file Boole.c.

125 {
126 static Class *clazz;
127 static Once once;
128
129 do_once(&once, {
130 clazz = _initialize(&(const ClassDef) {
131 .name = "Boole",
132 .superclass = _Object(),
133 .instanceSize = sizeof(Boole),
134 .interfaceSize = sizeof(BooleInterface),
135 .initialize = initialize,
136 .destroy = destroy,
137 });
138 });
139
140 return clazz;
141}
static void destroy(Class *clazz)
Definition Boole.c:102
static void initialize(Class *clazz)
Definition Boole.c:111
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition Class.c:151
Class * _Object(void)
Definition Object.c:136
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
A wrapper for placing boolean primitives into collections, etc.
Definition Boole.h:41
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:90