2 ms·
good C programs use [macros] sparingly and clearly mark the macro with an UPPER_CASE_IDENTIFIER This is only necessary if (a) the macro has side effects, or (b
by cperciva 15y ago
good C programs use [macros] sparingly and clearly mark the macro with an UPPER_CASE_IDENTIFIER
This is only necessary if (a) the macro has side effects, or (b) the macro interprets its arguments multiple times. In cases where the macro is functionally equivalent to an inlined function call, there's no need to capitalize it.
asked Tavis Ormandy (a fellow Googler and security badass) which language is easier to audit for security and he said C for the reasons of transparency I listed above.
I agree on both counts: C is much easier to audit, and Tavis is indeed a security badass.