olp-cpp-sdk  1.21.0
Namespaces | Macros | Functions
WarningWorkarounds.h File Reference

Contains utilities used to work around compiler warnings. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 olp
 Rules all the other namespaces.
 

Macros

#define OLP_SDK_CORE_UNUSED(...)   olp::core::Unused(__VA_ARGS__)
 Arbitrarily marks many variables as unused to avoid compiler warnings.
 
#define OLP_SDK_CORE_LOOP_ONCE()   while (false)
 

Functions

template<typename... Args>
void olp::core::Unused (Args &&...)
 A workaround for unused variables.
 

Detailed Description

Contains utilities used to work around compiler warnings.

Macro Definition Documentation

◆ OLP_SDK_CORE_LOOP_ONCE

#define OLP_SDK_CORE_LOOP_ONCE ( )    while (false)

A while statement for "do {} while (0)" used for macros that bypass compiler warnings.