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

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

#include <Objectively/Object.h>

Go to the source code of this file.

Data Structures

struct  Number
 A wrapper for placing numeric primitives into collections, etc. More...
 

Functions

OBJECTIVELY_EXPORT Class_Number (void)
 

Detailed Description

A wrapper for placing numeric primitives into collections, etc.

Definition in file Number.h.

Function Documentation

◆ _Number()

OBJECTIVELY_EXPORT Class * _Number ( void  )

Definition at line 198 of file Number.c.

198 {
199 static Class *clazz;
200 static Once once;
201
202 do_once(&once, {
203 clazz = _initialize(&(const ClassDef) {
204 .name = "Number",
205 .superclass = _Object(),
206 .instanceSize = sizeof(Number),
207 .interfaceOffset = offsetof(Number, interface),
208 .interfaceSize = sizeof(NumberInterface),
210 });
211 });
212
213 return clazz;
214}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void initialize(Class *clazz)
Definition: Number.c:176
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
A wrapper for placing numeric primitives into collections, etc.
Definition: Number.h:41
Class * _Object(void)
The Object archetype.
Definition: Object.c:136