C generic macro names - gcc -fextended-identifiers

I am looking for how to write an identifier name with characters such as ['"or #.

Every time I try to do this, I give an error:

error: macro names must be identifiers

But learning about gcc, I found this option:

-fextended identifiers

But it doesn't seem to work like I wanted, please, does anyone know how to do this?

+3
source share
3 answers

Identifiers cannot include such characters. Defined in this way in the language syntax, identifiers are letters, numbers, or underscores (and should not start with a number to avoid ambiguity with letter numbers).

, C ( [ ] C ( #). , ( , unicode- ..).

, " ", "C like". , . , ...

+2

, -fextended-identifiers UTF-8 , .

, : .

0

, , :

[ ' " #

. " " " , ", , . _, (6.4.2.1 /).

0

Source: https://habr.com/ru/post/1786480/