mark debugfile with UNLIKELY

this is for debug, and esp network debug which barely anyone ever needs, so can tell compiler better branch hint
This commit is contained in:
Alug committed 2025-12-05 00:32:19 +01:00
1 parent 4a2f86e9bf
commit 230e731a25
1 file changed
+1 -1
+1 -1
View File
@@ -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