|
cbase 1.50.0
C/C++ Static Template
|
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). | |
Semantic replacements for the static and extern keywords.
| #define API_EXPORT |
Exports a symbol from a shared library (.dll / .so).
Definition at line 212 of file base_macros.h.
| #define API_LOCAL |
Hides a symbol from a shared library (.dll / .so).
Definition at line 214 of file base_macros.h.
| #define C_LINKAGE_BEGIN |
Opens a C linkage block for C++ compilers (Empty in C).
Definition at line 224 of file base_macros.h.
| #define C_LINKAGE_END |
Closes a C linkage block for C++ compilers (Empty in C).
Definition at line 226 of file base_macros.h.
| #define external extern |
Externally linked variable or function.
Definition at line 187 of file base_macros.h.
| #define function static |
File-scoped function (invisible to the linker).
Definition at line 178 of file base_macros.h.
| #define global static |
File-scoped global variable (invisible to the linker).
Definition at line 181 of file base_macros.h.
| #define local_persist static |
Function-scoped static variable (persists state across calls).
Definition at line 184 of file base_macros.h.
| #define thread_local _Thread_local |
Declares a thread-local variable (each thread gets its own instance).
Definition at line 195 of file base_macros.h.