10 Jul
2024
10 Jul
'24
9 a.m.
On Wed Jul 10 00:18:13 2024 +0000, Alfred Agrell wrote:
Please wrap function-like macros in `do { body; } while(0)`, so they don't screw up if used in if-else cases without braces. Or even better, make them static inline functions. (Don't worry about function call overhead, it'll get inlined.) Thank you, you are right, for now I will use macro, in the future I may transfer the code to an inline function.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6031#note_75732