diff options
author | Liam <byteslice@airmail.cc> | 2022-06-07 19:46:10 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-13 20:09:32 -0400 |
commit | a29ddcee40d78b1c1f7f64855331888777add4f4 (patch) | |
tree | c17c48910b91d06273b467e1a6994089df9fb17e /src/common/assert.cpp | |
parent | d11547024c2c14b913ed8743de5e345260e3c19f (diff) |
common/assert: add unlikely
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r-- | src/common/assert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp index b20c191238..1a85faccfe 100644 --- a/src/common/assert.cpp +++ b/src/common/assert.cpp @@ -7,7 +7,7 @@ #include "common/settings.h" void assert_check_condition(bool cond, std::function<void()>&& on_failure) { - if (!cond) { + if (!cond) [[unlikely]] { on_failure(); if (Settings::values.use_debug_asserts) { |