Files
cppdraft_translate/cppdraft/cpp/scope.md
2025-10-25 03:02:53 +03:00

1.1 KiB

[cpp.scope]

15 Preprocessing directives [cpp]

15.7 Macro replacement [cpp.replace]

15.7.6 Scope of macro definitions [cpp.scope]

1

#

A macro definition lasts (independent of block structure) until a corresponding#undef directive is encountered or (if none is encountered) until the end of the translation unit.

Macro definitions have no significance after translation phase 4.

2

#

A preprocessing directive of the form

undef identifier new-line

causes the specified identifier no longer to be defined as a macro name.

It is ignored if the specified identifier is not currently defined as a macro name.