This commit is contained in:
Igor Pavlov
2021-07-22 23:00:14 +01:00
committed by Kornel
parent 4a960640a3
commit 585698650f
619 changed files with 34904 additions and 10859 deletions

View File

@@ -40,4 +40,18 @@ you can change this h file or h files included in this file.
#define MY_ARRAY_NEW(p, T, size) p = new T[size];
#endif
#if (defined(__GNUC__) && (__GNUC__ >= 8))
#define MY_ATTR_NORETURN __attribute__((noreturn))
#elif (defined(__clang__) && (__clang_major__ >= 3))
#if __has_feature(cxx_attributes)
#define MY_ATTR_NORETURN [[noreturn]]
#else
#define MY_ATTR_NORETURN __attribute__ ((noreturn))
#endif
#elif (defined(_MSC_VER) && (_MSC_VER >= 1900))
#define MY_ATTR_NORETURN [[noreturn]]
#else
#define MY_ATTR_NORETURN
#endif
#endif