2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

common/assert: add unlikely

This commit is contained in:
Liam 2022-06-07 19:46:10 -04:00
parent d11547024c
commit a29ddcee40

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