C++ Utilities  4.15.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Macros
global.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIB_EXPORT   __attribute__((visibility("default")))
 Marks a symbol for shared library export. More...
 
#define LIB_IMPORT   __attribute__((visibility("default")))
 Declares a symbol to be an import from a shared library. More...
 
#define LIB_HIDDEN   __attribute__((visibility("hidden")))
 Hidden visibility indicates that the symbol will not be placed into the dynamic symbol table, so no other module (executable or shared library) can reference it directly. More...
 
#define USE_NOTHROW   throw()
 Marks a function as never throwing, under no circumstances. More...
 
#define DECLARE_ENUM(name, base)   enum name : base
 Declares an enum without preventing lupdate to parse the file correctly. More...
 
#define DECLARE_ENUM_CLASS(name, base)   enum class name : base
 Declares an enum without preventing lupdate to parse the file correctly. More...
 
#define VAR_UNUSED(x)   (void)x;
 Prevents warnings about unused variables. More...
 
#define IF_DEBUG_BUILD(x)
 Wraps debug-only lines conveniently. More...
 
#define FALLTHROUGH
 Prevents clang from warning about missing break in switch-case. More...
 

Macro Definition Documentation

◆ DECLARE_ENUM

#define DECLARE_ENUM (   name,
  base 
)    enum name : base

Declares an enum without preventing lupdate to parse the file correctly.

Definition at line 106 of file global.h.

◆ DECLARE_ENUM_CLASS

#define DECLARE_ENUM_CLASS (   name,
  base 
)    enum class name : base

Declares an enum without preventing lupdate to parse the file correctly.

Definition at line 113 of file global.h.

◆ FALLTHROUGH

#define FALLTHROUGH

Prevents clang from warning about missing break in switch-case.

Remarks
Does nothing if another compiler is used.

Definition at line 142 of file global.h.

◆ IF_DEBUG_BUILD

#define IF_DEBUG_BUILD (   x)

Wraps debug-only lines conveniently.

Definition at line 130 of file global.h.

◆ LIB_EXPORT

#define LIB_EXPORT   __attribute__((visibility("default")))

Marks a symbol for shared library export.

Definition at line 82 of file global.h.

◆ LIB_HIDDEN

#define LIB_HIDDEN   __attribute__((visibility("hidden")))

Hidden visibility indicates that the symbol will not be placed into the dynamic symbol table, so no other module (executable or shared library) can reference it directly.

Definition at line 84 of file global.h.

◆ LIB_IMPORT

#define LIB_IMPORT   __attribute__((visibility("default")))

Declares a symbol to be an import from a shared library.

Definition at line 83 of file global.h.

◆ USE_NOTHROW

#define USE_NOTHROW   throw()

Marks a function as never throwing, under no circumstances.

Remarks
If the function does nevertheless throw, the behaviour is undefined.

Definition at line 97 of file global.h.

◆ VAR_UNUSED

#define VAR_UNUSED (   x)    (void)x;

Prevents warnings about unused variables.

Definition at line 120 of file global.h.