cpp-project-template
0.0.1.0
C++ Project Template
Loading...
Searching...
No Matches
compiler.h
Go to the documentation of this file.
1
10
11
12
#ifndef CPP_PROJ_COMPILER_H
13
#define CPP_PROJ_COMPILER_H
14
19
#define QUOTE(s) #s
// NOLINT
20
21
#ifdef __GNUC__
22
#define DIAGNOSTIC_PUSH() _Pragma("GCC diagnostic push")
23
#define DIAGNOSTIC_IGNORE(warning) \
24
_Pragma(QUOTE(GCC diagnostic ignored warning))
25
#define DIAGNOSTIC_POP() _Pragma("GCC diagnostic pop")
26
#else
30
#define DIAGNOSTIC_PUSH()
34
#define DIAGNOSTIC_IGNORE(warning)
38
#define DIAGNOSTIC_POP()
39
#endif
40
41
#endif
// CPP_PROJ_COMPILER_H
src
projectlib
src
compiler.h
Generated by
1.14.0