Versions Compared

Key

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

...

Code Block
bgColor#ffcccc
/* 
 * Swaps two values.
 * Requires tmp variable to be defined. 
 */
#define SWAP(x, y) \
  tmp = x; \
  x = y; \
  y = tmp

...

Code Block
bgColor#ccccff
/* 
 * Swaps two values.
 * Requires tmp variable to be defined.
 */
#define SWAP(x, y) \
  do { \
    tmp = x; \
    x = y; \
    y = tmp; } \
  while (0)

...

Wiki Markup
\[[ISO/IEC PDTR 24772|AA. C References#ISO/IEC PDTR 24772]\] ""NMP Pre-processor Directions""

...

PRE09-C. Do not replace secure functions with less secure functions            01. Preprocessor (PRE)