mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-01 04:02:55 +01:00
common/assert: add unlikely
This commit is contained in:
1 parent
f3fd1038bb
commit
855928b782
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user