diff options
author | Chris Robinson <[email protected]> | 2022-12-06 01:48:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-06 01:48:58 -0800 |
commit | 4d757068c4784a18026089fd812949703bd9470a (patch) | |
tree | 1a1c2f819d14acc7a32cc26f10ffa1227c72b744 /core/except.cpp | |
parent | 25a6814cf36bee82b24cb1b5f40769e66c327db4 (diff) |
Avoid using a macro to wrap standard attributes
Diffstat (limited to 'core/except.cpp')
-rw-r--r-- | core/except.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/except.cpp b/core/except.cpp index 5e757ed7..8e3536bd 100644 --- a/core/except.cpp +++ b/core/except.cpp @@ -19,7 +19,7 @@ void base_exception::setMessage(const char* msg, std::va_list args) std::va_list args2; va_copy(args2, args); int msglen{std::vsnprintf(nullptr, 0, msg, args)}; - if(msglen > 0) [[allikely]] + if(msglen > 0) [[likely]] { mMessage.resize(static_cast<size_t>(msglen)+1); std::vsnprintf(&mMessage[0], mMessage.length(), msg, args2); |