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

Symbols with two contiguous underscores must only be used by the compiler or standard library #256

Open
jonesmz opened this issue Sep 13, 2021 · 0 comments

Comments

@jonesmz
Copy link
Contributor

jonesmz commented Sep 13, 2021

See here: https://stackoverflow.com/questions/224397/why-do-people-use-double-underscore-so-much-in-c

I notice that preprocessor symbols with two leading underscores are used in header files. This is forbidden by the C++ and C language standards.

For example:

__D_VECTOR_X86_SIMD_H__

I also notice preprocessor defines with a single underscore followed by a capital letter, e.g.

	add_definitions(-D_D_CORE_EXPORT_DLL)

Symbols of this pattern are reserved for the standard library only.

Newton Dynamics should change these symbols to not use names in the reserved namespace.

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