Zth (libzth)
init.cpp File Reference
#include <libzth/macros.h>
#include <libzth/init.h>
#include <libzth/util.h>

Go to the source code of this file.

Functions

void zth_init ()
 Perform one-time global initialization of the Zth library. More...
 

Variables

struct zth_init_entry const * zth_init_head = nullptr
 
struct zth_init_entryzth_init_tail = nullptr
 

Function Documentation

◆ zth_init()

void zth_init ( )

Perform one-time global initialization of the Zth library.

Initialization is only done once. It is safe to call it multiple times.

The initialization sequence is initialized by ZTH_INIT_CALL() and processed in the same order as normal static initializers are executed.

Definition at line 25 of file init.cpp.

Variable Documentation

◆ zth_init_head

struct zth_init_entry const* zth_init_head = nullptr

Definition at line 14 of file init.cpp.

◆ zth_init_tail

struct zth_init_entry* zth_init_tail = nullptr

Definition at line 15 of file init.cpp.