PLaSK library

Loading...
Searching...
No Matches
Macros
warnings.hpp File Reference

This file contains portable utils to manage (mainly disable for a given fragment of code) compiler warnings. More...

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

Go to the source code of this file.

## Macros
#define | PLASK_PRAGMA(x) _Pragma(#x)
| allows for putting pragma from macro
#define | PLASK_UNUSED(arg)
#define | PLASK_NO_CONVERSION_WARNING_BEGIN
| beginning from the place this macro is put, disable warnings about possibly danger conversions (with precision loss, etc.)
#define | PLASK_NO_UNUSED_VARIABLE_WARNING_BEGIN
| beginning from the place this macro is put, disable warnings about unused variables
#define | PLASK_NO_WARNING_END
| ends the fragment where some warnings were disabled by PLASK_NO_*_WARNING_BEGIN macro (must be used twice to end two successive PLASK_NO_*_WARNING_BEGIN)

## Detailed Description

This file contains portable utils to manage (mainly disable for a given fragment of code) compiler warnings.

Definition in file warnings.hpp.

## Macro Definition Documentation

## ◆ PLASK_NO_CONVERSION_WARNING_BEGIN

#define PLASK_NO_CONVERSION_WARNING_BEGIN

beginning from the place this macro is put, disable warnings about possibly danger conversions (with precision loss, etc.)

Definition at line 80 of file warnings.hpp.

## ◆ PLASK_NO_UNUSED_VARIABLE_WARNING_BEGIN

#define PLASK_NO_UNUSED_VARIABLE_WARNING_BEGIN

beginning from the place this macro is put, disable warnings about unused variables

Definition at line 83 of file warnings.hpp.

## ◆ PLASK_NO_WARNING_END

#define PLASK_NO_WARNING_END

ends the fragment where some warnings were disabled by PLASK_NO_*_WARNING_BEGIN macro (must be used twice to end two successive PLASK_NO_*_WARNING_BEGIN)

Definition at line 86 of file warnings.hpp.

## ◆ PLASK_PRAGMA

#define PLASK_PRAGMA | ( |  | x | ) | _Pragma(#x)

allows for putting pragma from macro

Definition at line 25 of file warnings.hpp.

## ◆ PLASK_UNUSED

#define PLASK_UNUSED | ( |  | arg | ) |

Definition at line 33 of file warnings.hpp.