Skip to content

Conversation

@mingxwa
Copy link
Member

@mingxwa mingxwa commented Jun 25, 2025

As per [lex.name],

Each identifier that contains a double underscore __ or begins with an underscore followed by an uppercase letter, other than those specified in this document (for example, __cplusplus ([cpp.predefined])), is reserved to the implementation for any use.
(3.2)

Each identifier that begins with an underscore is reserved to the implementation for use as a name in the global namespace.

Macros for internal usage are not supposed to begin with an underscore. Updated the naming of the internal macros to follow the standard naming conventions. No functional changes.

@mingxwa mingxwa requested review from guominrui and tian-lt June 25, 2025 05:01
@mingxwa mingxwa merged commit 0238197 into microsoft:main Jun 25, 2025
9 checks passed
@mingxwa mingxwa deleted the user/mingxwa/macro-clean-up branch June 25, 2025 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants