C++ Utilities  4.17.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...
 
#define APPLICATION_UTILITIES_GLOBAL_H
 
#define LIB_EXPORT   __attribute__((visibility("default")))
 
#define LIB_IMPORT   __attribute__((visibility("default")))
 
#define LIB_HIDDEN   __attribute__((visibility("hidden")))
 
#define DECLARE_ENUM(name, base)   enum name : base
 
#define DECLARE_ENUM_CLASS(name, base)   enum class name : base
 
#define VAR_UNUSED(x)   (void)x;
 
#define IF_DEBUG_BUILD(x)
 
#define FALLTHROUGH
 

Macro Definition Documentation

◆ APPLICATION_UTILITIES_GLOBAL_H

#define APPLICATION_UTILITIES_GLOBAL_H

Definition at line 3 of file binaryconversion.h.

◆ DECLARE_ENUM [1/2]

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

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

Definition at line 107 of file binaryconversion.h.

◆ DECLARE_ENUM [2/2]

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

◆ DECLARE_ENUM_CLASS [1/2]

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

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

Definition at line 114 of file binaryconversion.h.

◆ DECLARE_ENUM_CLASS [2/2]

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

◆ FALLTHROUGH [1/2]

#define FALLTHROUGH

◆ FALLTHROUGH [2/2]

#define FALLTHROUGH

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

Remarks
Does nothing if another compiler is used.

Definition at line 143 of file binaryconversion.h.

◆ IF_DEBUG_BUILD [1/2]

#define IF_DEBUG_BUILD (   x)

◆ IF_DEBUG_BUILD [2/2]

#define IF_DEBUG_BUILD (   x)

Wraps debug-only lines conveniently.

Definition at line 131 of file binaryconversion.h.

◆ LIB_EXPORT [1/2]

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

Marks a symbol for shared library export.

Definition at line 83 of file binaryconversion.h.

◆ LIB_EXPORT [2/2]

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

◆ LIB_HIDDEN [1/2]

#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 85 of file binaryconversion.h.

◆ LIB_HIDDEN [2/2]

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

◆ LIB_IMPORT [1/2]

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

◆ LIB_IMPORT [2/2]

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

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

Definition at line 84 of file binaryconversion.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.

◆ VAR_UNUSED [1/2]

#define VAR_UNUSED (   x)    (void)x;

◆ VAR_UNUSED [2/2]

#define VAR_UNUSED (   x)    (void)x;

Prevents warnings about unused variables.

Definition at line 121 of file binaryconversion.h.