opt: optimize null check in get_next_stack_client

This commit is contained in:
DreamMaoMao
2025-11-01 14:39:32 +08:00
parent ef92281b2a
commit 0ab38c6aa6
2 changed files with 15 additions and 3 deletions

View File

@@ -104,7 +104,7 @@
(A && !(A)->isfloating && !(A)->isminied && !(A)->iskilling && \
!(A)->ismaximizescreen && !(A)->isfullscreen)
#define VISIBLEON(C, M) \
((M) && (C)->mon == (M) && ((C)->tags & (M)->tagset[(M)->seltags]))
((C) && (M) && (C)->mon == (M) && ((C)->tags & (M)->tagset[(M)->seltags]))
#define LENGTH(X) (sizeof X / sizeof X[0])
#define END(A) ((A) + LENGTH(A))
#define TAGMASK ((1 << LENGTH(tags)) - 1)