...
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); |
...
[ISO/IEC 10646-2003] | |
[ISO/IEC 9899:2011] | Section 5.1.1.2, "Translation Phases" |
...