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

Audit library for macro usage #120

Open
phillipjohnston opened this issue Mar 20, 2020 · 0 comments
Open

Audit library for macro usage #120

phillipjohnston opened this issue Mar 20, 2020 · 0 comments

Comments

@phillipjohnston
Copy link
Member

phillipjohnston commented Mar 20, 2020

Per the C standard:

"unless explicitly stated otherwise in the detailed descriptions [...] For the same syntactic reason, it is permitted to take the address of a library function even if it is also defined as a macro"

The related footnote states:

  1. This means that an implementation shall provide an actual function for each library function, even if it also provides a macro for that function.

Should audit library usage to make sure this is followed.

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

No branches or pull requests

1 participant