mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 07:53:44 +00:00
chore(Common/Misc): Replace old macros with modern C++ attributes (#6462)
* chore(Common/Misc): Replace old macros with modern C++ attributes
* cherry-pick commit (5ae2a0f47d)
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
* fix build
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
@@ -12,20 +12,20 @@
|
||||
|
||||
namespace Acore
|
||||
{
|
||||
DECLSPEC_NORETURN void Assert(char const* file, int line, char const* function, std::string const& debugInfo, char const* message) ATTR_NORETURN;
|
||||
DECLSPEC_NORETURN void Assert(char const* file, int line, char const* function, std::string const& debugInfo, char const* message, char const* format, ...) ATTR_NORETURN ATTR_PRINTF(6, 7);
|
||||
[[noreturn]] void Assert(char const* file, int line, char const* function, std::string const& debugInfo, char const* message);
|
||||
[[noreturn]] void Assert(char const* file, int line, char const* function, std::string const& debugInfo, char const* message, char const* format, ...) ATTR_PRINTF(6, 7);
|
||||
|
||||
DECLSPEC_NORETURN void Fatal(char const* file, int line, char const* function, char const* message, ...) ATTR_NORETURN ATTR_PRINTF(4, 5);
|
||||
[[noreturn]] void Fatal(char const* file, int line, char const* function, char const* message, ...) ATTR_PRINTF(4, 5);
|
||||
|
||||
DECLSPEC_NORETURN void Error(char const* file, int line, char const* function, char const* message) ATTR_NORETURN;
|
||||
[[noreturn]] void Error(char const* file, int line, char const* function, char const* message);
|
||||
|
||||
DECLSPEC_NORETURN void Abort(char const* file, int line, char const* function) ATTR_NORETURN;
|
||||
[[noreturn]] void Abort(char const* file, int line, char const* function);
|
||||
|
||||
DECLSPEC_NORETURN void Abort(char const* file, int line, char const* function, char const* message, ...) ATTR_NORETURN;
|
||||
[[noreturn]] void Abort(char const* file, int line, char const* function, char const* message, ...);
|
||||
|
||||
void Warning(char const* file, int line, char const* function, char const* message);
|
||||
|
||||
DECLSPEC_NORETURN void AbortHandler(int sigval) ATTR_NORETURN;
|
||||
[[noreturn]] void AbortHandler(int sigval);
|
||||
|
||||
} // namespace Acore
|
||||
|
||||
|
||||
Reference in New Issue
Block a user