OGLplus  (0.59.0) a C++ wrapper for rendering APIs

diagnostic.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_DIAGNOSTIC_HPP
10 #define EAGINE_DIAGNOSTIC_HPP
11 
12 #include "preprocessor.hpp"
13 
14 #if defined(__clang__)
15 #define EAGINE_DIAG_PRAGMA(EXPR) EAGINE_PRAGMA(clang diagnostic EXPR)
16 #elif defined(__GNUC__)
17 #define EAGINE_DIAG_PRAGMA(EXPR) EAGINE_PRAGMA(GCC diagnostic EXPR)
18 #endif
19 
20 #if defined(__clang__) || defined(__GNUC__)
21 
22 #define EAGINE_DIAG_OFF(EXPR) \
23  EAGINE_DIAG_PRAGMA(ignored EAGINE_STRINGIFY(EAGINE_JOIN(-W, EXPR)))
24 
25 #define EAGINE_DIAG_PUSH() EAGINE_DIAG_PRAGMA(push)
26 #define EAGINE_DIAG_POP() EAGINE_DIAG_PRAGMA(pop)
27 
28 #endif
29 
30 #endif // EAGINE_DIAGNOSTIC_HPP

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).