Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Non-Compliant Code Example

Wiki Markup
In this example, adapted from \[[Dewhurst 02|AA. C References#Dewhurst 02]\] Gotcha #25, non-compliant code example a macro is used to define a maximum value, but there is no type information associated with the macro  \[[Dewhurst 02|AA. C References#Dewhurst 02]\].

Code Block
bgColor#FFCCCC
#define MAX (1<<16)
// ...
void f(int);
void f(long);
// ...
f(MAX);  // which f?

...