common/assert: add unlikely

This commit is contained in:
Liam committed 2022-06-13 20:09:32 -04:00
1 parent f3fd1038bb
commit 855928b782
1 file changed
+1 -1
+1 -1
View File
@@ -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) {