From 230e731a25006a42e28fbd07608749c89bb18d24 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 5 Dec 2025 00:32:19 +0100 Subject: [PATCH] mark debugfile with UNLIKELY this is for debug, and esp network debug which barely anyone ever needs, so can tell compiler better branch hint --- src/doomstat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doomstat.h b/src/doomstat.h index f97aaefec..fb8bfa122 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -543,7 +543,7 @@ extern mapthing_t *redctfstarts[MAXPLAYERS]; // CTF #else #define DEBUGFILE #ifdef DEBUGFILE -#define DEBFILE(msg) { if (debugfile) { fputs(msg, debugfile); fflush(debugfile); } } +#define DEBFILE(msg) { if (UNLIKELY(debugfile)) { fputs(msg, debugfile); fflush(debugfile); } } #else #define DEBFILE(msg) {} #endif