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.