common/assert: add unlikely

merge-requests/60/head
Liam 2022-06-07 19:46:10 +07:00
parent d11547024c
commit a29ddcee40
1 changed files with 1 additions and 1 deletions

@ -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) {