Fix BASIC
Fix cycle waiting Fix warnings
This commit is contained in:
1 parent
8101cc3f62
commit
a5e30a7b28
14 files changed
+114
-61
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
#define DIAG_STRINGIFY_(x) #x
|
||||
#define DIAG_STRINGIFY(x) DIAG_STRINGIFY_(x)
|
||||
|
||||
#define DIAG_DO_PRAGMA(x) _Pragma(DIAG_STRINGIFY(x))
|
||||
|
||||
#if defined(__clang__)
|
||||
|
||||
#define DIAG_PUSH() DIAG_DO_PRAGMA(clang diagnostic push)
|
||||
|
||||
#define DIAG_POP() DIAG_DO_PRAGMA(clang diagnostic pop)
|
||||
|
||||
#define DIAG_IGNORE(w) DIAG_DO_PRAGMA(clang diagnostic ignored w)
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
|
||||
#define DIAG_PUSH() DIAG_DO_PRAGMA(GCC diagnostic push)
|
||||
|
||||
#define DIAG_POP() DIAG_DO_PRAGMA(GCC diagnostic pop)
|
||||
|
||||
#define DIAG_IGNORE(w) DIAG_DO_PRAGMA(GCC diagnostic ignored w)
|
||||
|
||||
#else
|
||||
|
||||
#define DIAG_PUSH()
|
||||
#define DIAG_POP()
|
||||
#define DIAG_IGNORE(w)
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user