top | item 45832287 (no title) winocm | 3 months ago Mildly related, sort of, one can prevent expansion of variadic macros as follows: #define printf(...) int (printf)(const char *, ...); I keep on seeing many random code bases just resort to #undef instead... discuss order hn newest pwdisswordfishy|3 months ago Doesn't this trigger warnings? joriatsy|3 months ago Function like macros literally requires name( , i.e name followed directly by open paren, otherwise no macro substitution occurs. so (name)() will always suppress function like macros (but not non-function ones, i.e regular #define name xxx)
pwdisswordfishy|3 months ago Doesn't this trigger warnings? joriatsy|3 months ago Function like macros literally requires name( , i.e name followed directly by open paren, otherwise no macro substitution occurs. so (name)() will always suppress function like macros (but not non-function ones, i.e regular #define name xxx)
joriatsy|3 months ago Function like macros literally requires name( , i.e name followed directly by open paren, otherwise no macro substitution occurs. so (name)() will always suppress function like macros (but not non-function ones, i.e regular #define name xxx)
pwdisswordfishy|3 months ago
joriatsy|3 months ago