cbase 1.46.11
C/C++ Static Template
Loading...
Searching...
No Matches
Linkage & Storage Class

Semantic replacements for the static and extern keywords. More...

Macros

#define function   static
 File-scoped function (invisible to the linker).
#define global   static
 File-scoped global variable (invisible to the linker).
#define local_persist   static
 Function-scoped static variable (persists state across calls).
#define external   extern
 Externally linked variable or function.
#define thread_local   _Thread_local
 Declares a thread-local variable (each thread gets its own instance).
#define API_EXPORT
 Exports a symbol from a shared library (.dll / .so).
#define API_LOCAL
 Hides a symbol from a shared library (.dll / .so).
#define C_LINKAGE_BEGIN
 Opens a C linkage block for C++ compilers (Empty in C).
#define C_LINKAGE_END
 Closes a C linkage block for C++ compilers (Empty in C).

Detailed Description

Semantic replacements for the static and extern keywords.

Macro Definition Documentation

◆ API_EXPORT

#define API_EXPORT

Exports a symbol from a shared library (.dll / .so).

Definition at line 189 of file base_macros.h.

◆ API_LOCAL

#define API_LOCAL

Hides a symbol from a shared library (.dll / .so).

Definition at line 191 of file base_macros.h.

◆ C_LINKAGE_BEGIN

#define C_LINKAGE_BEGIN

Opens a C linkage block for C++ compilers (Empty in C).

Definition at line 201 of file base_macros.h.

◆ C_LINKAGE_END

#define C_LINKAGE_END

Closes a C linkage block for C++ compilers (Empty in C).

Definition at line 203 of file base_macros.h.

◆ external

#define external   extern

Externally linked variable or function.

Definition at line 164 of file base_macros.h.

◆ function

#define function   static

File-scoped function (invisible to the linker).

Definition at line 155 of file base_macros.h.

◆ global

#define global   static

File-scoped global variable (invisible to the linker).

Definition at line 158 of file base_macros.h.

◆ local_persist

#define local_persist   static

Function-scoped static variable (persists state across calls).

Definition at line 161 of file base_macros.h.

◆ thread_local

#define thread_local   _Thread_local

Declares a thread-local variable (each thread gets its own instance).

Definition at line 172 of file base_macros.h.