...
This rule appears in the C++ Secure Coding Standard as PRE00-CPP. Prefer inline or static functions to function-like Avoid defining macros.
References
Wiki Markup |
---|
\[[FSF 05|AA. References#FSF 05]\] Section 5.34, "[An Inline Function Is as Fast as a Macro|http://gcc.gnu.org/onlinedocs/gcc/Inline.html]" \[[Dewhurst 02|AA. References#Dewhurst 02]\] Gotcha #26, "#define Pseudofunctions" \[[ISO/IEC 9899:1999|AA. References#ISO/IEC 9899-1999]\] Section 6.7.4, "Function specifiers" \[[ISO/IEC PDTR 24772|AA. References#ISO/IEC PDTR 24772]\] "NMP Pre-processor Directives" \[[Kettlewell 03|AA. References#Kettlewell 03]\] \[[MISRA 04|AA. References#MISRA 04]\] Rule 19.7 \[[Summit 05|AA. References#Summit 05]\] Question 10.4 |
...