Languages/C/CompilerTrust
From UIT
|
Trust your compiler
macros VS functions
Macros can be hard to write, are not easily readable and prone to type errors. Macros can have side effects when using arguments multiple time.
Functions can be slower than macros, but a good compiler will automatically inline simple static functions.
So, as always, prefer maintainability over (apparent) speedup.