Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__STDC_­HOSTED__ deals with freestanding, but does not mention it #3914

Closed
ben-craig opened this issue Mar 29, 2020 · 1 comment · Fixed by #3949
Closed

__STDC_­HOSTED__ deals with freestanding, but does not mention it #3914

ben-craig opened this issue Mar 29, 2020 · 1 comment · Fixed by #3949
Assignees

Comments

@ben-craig
Copy link

It would be nice if searching for the word "freestanding" in the standard would reach the predefined macro that lets users detect whether an implementation is freestanding. In n4849, the search would miss __STDC_HOSTED__ in [cpp.predefined].

I recommend editorially changing the text.

Edit cpp.predefined 1.5:

The integer literal 1 if the implementation is a hosted implementation or the integer literal 0 if it is not a freestanding implementation.

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 a pull request may close this issue.

3 participants
@ben-craig @jensmaurer and others