Versions Compared

Key

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

...

This code example is noncompliant because it produces a universal character name by token concatenation.

Code Block
bgColor#FFCCCC
langc
#define assign(uc1, uc2, val) uc1##uc2 = val;

int \u0401;
assign( \u04, 01, 4);

...

This code solution is compliant.

Code Block
bgColor#ccccff
langc
#define assign(ucn, val) ucn = val;

int \u0401;
assign( \u0401, 4);

...