mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-02 23:01:25 +00:00
warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] (#374)
Except where the expansion would be syntactically invalid, for example "goto macroarg;" detection of which is a bug in clang-tidy, so warn it off with a NOLINT...(bugprone-macro-parentheses)
This commit is contained in:
@@ -545,22 +545,22 @@ typedef struct {
|
||||
LispPTR CUDATA;
|
||||
} CURSOR;
|
||||
|
||||
#define CursorClippingX(posx, width) \
|
||||
{ \
|
||||
if (displaywidth < (posx + HARD_CURSORWIDTH)) { \
|
||||
LastCursorClippingX = width = displaywidth - posx; \
|
||||
} else { \
|
||||
LastCursorClippingX = width = HARD_CURSORWIDTH; \
|
||||
} \
|
||||
#define CursorClippingX(posx, width) \
|
||||
{ \
|
||||
if (displaywidth < ((posx) + HARD_CURSORWIDTH)) { \
|
||||
LastCursorClippingX = (width) = displaywidth - (posx); \
|
||||
} else { \
|
||||
LastCursorClippingX = (width) = HARD_CURSORWIDTH; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define CursorClippingY(posy, height) \
|
||||
{ \
|
||||
if (displayheight < (posy + HARD_CURSORHEIGHT)) { \
|
||||
LastCursorClippingY = height = displayheight - posy; \
|
||||
} else { \
|
||||
LastCursorClippingY = height = HARD_CURSORHEIGHT; \
|
||||
} \
|
||||
#define CursorClippingY(posy, height) \
|
||||
{ \
|
||||
if (displayheight < ((posy) + HARD_CURSORHEIGHT)) { \
|
||||
LastCursorClippingY = (height) = displayheight - (posy); \
|
||||
} else { \
|
||||
LastCursorClippingY = (height) = HARD_CURSORHEIGHT; \
|
||||
} \
|
||||
}
|
||||
|
||||
extern int displaywidth, displayheight;
|
||||
|
||||
Reference in New Issue
Block a user