diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2021-06-20 16:52:24 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-11 11:48:31 +0100 |
commit | 2bc1bbd91daab1da32caffb535da9ce39ff20725 (patch) | |
tree | f2b3e3285a2bf8062290b9e41cc063d285a964a7 /src/common/Debugging | |
parent | d0fe16b78743bace4e620089787dfd3919a31a68 (diff) |
Common/Misc: Replace old macros with modern C++ attributes (#26613)
(cherry picked from commit 5ae2a0f47d323fadcfebf44c7b6ec11a3f91c75a)
Diffstat (limited to 'src/common/Debugging')
-rw-r--r-- | src/common/Debugging/Errors.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/Debugging/Errors.h b/src/common/Debugging/Errors.h index 4728ab35d2f..003cb843696 100644 --- a/src/common/Debugging/Errors.h +++ b/src/common/Debugging/Errors.h @@ -23,19 +23,19 @@ namespace Trinity { - DECLSPEC_NORETURN TC_COMMON_API void Assert(char const* file, int line, char const* function, std::string debugInfo, char const* message) ATTR_NORETURN; - DECLSPEC_NORETURN TC_COMMON_API void Assert(char const* file, int line, char const* function, std::string debugInfo, char const* message, char const* format, ...) ATTR_NORETURN ATTR_PRINTF(6, 7); + [[noreturn]] TC_COMMON_API void Assert(char const* file, int line, char const* function, std::string debugInfo, char const* message); + [[noreturn]] TC_COMMON_API void Assert(char const* file, int line, char const* function, std::string debugInfo, char const* message, char const* format, ...) ATTR_PRINTF(6, 7); - DECLSPEC_NORETURN TC_COMMON_API void Fatal(char const* file, int line, char const* function, char const* message, ...) ATTR_NORETURN ATTR_PRINTF(4, 5); + [[noreturn]] TC_COMMON_API void Fatal(char const* file, int line, char const* function, char const* message, ...) ATTR_PRINTF(4, 5); - DECLSPEC_NORETURN TC_COMMON_API void Error(char const* file, int line, char const* function, char const* message) ATTR_NORETURN; + [[noreturn]] TC_COMMON_API void Error(char const* file, int line, char const* function, char const* message); - DECLSPEC_NORETURN TC_COMMON_API void Abort(char const* file, int line, char const* function) ATTR_NORETURN; - DECLSPEC_NORETURN TC_COMMON_API void Abort(char const* file, int line, char const* function, char const* message, ...) ATTR_NORETURN; + [[noreturn]] TC_COMMON_API void Abort(char const* file, int line, char const* function); + [[noreturn]] TC_COMMON_API void Abort(char const* file, int line, char const* function, char const* message, ...); TC_COMMON_API void Warning(char const* file, int line, char const* function, char const* message); - DECLSPEC_NORETURN TC_COMMON_API void AbortHandler(int sigval) ATTR_NORETURN; + [[noreturn]] TC_COMMON_API void AbortHandler(int sigval); } // namespace Trinity |