...
This code example is noncompliant because it produces a universal character name by token concatenation.
Code Block | ||||
---|---|---|---|---|
| ||||
#define assign(uc1, uc2, val) uc1##uc2 = val; int \u0401; assign( \u04, 01, 4); |
...
This code solution is compliant.
Code Block | ||||
---|---|---|---|---|
| ||||
#define assign(ucn, val) ucn = val; int \u0401; assign( \u0401, 4); |
...