Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Data Structures | Functions
Boole.h File Reference

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

#include <Objectively/Object.h>

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 .interfaceOffset = offsetof(Boole, interface),
135 .interfaceSize = sizeof(BooleInterface),
137 .destroy = destroy,
138 });
139 });
140
141 return clazz;
142}
static void destroy(Class *clazz)
Definition: Boole.c:115
static void initialize(Class *clazz)
Definition: Boole.c:102
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
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:95
Class * _Object(void)
The Object archetype.
Definition: Object.c:136