-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
cpp namespace pollution in julia.h #10682
Comments
…r header files that define DLLEXPORT
+1 |
Perhaps should be backported too. |
The most used |
While
Then I used the following crude command to get a list of
which produced the following result:
However, |
Would be good for someone to take this on with a PR. Are we worried about backward compatibility for these preprocessor defines in Julia 1.x? (One option would be to also define the legacy symbols like |
Many of these we should probably attempt to stop using from here (remove or move to julia_internal.h, as applicable). |
The
julia.h
file#defines
a bunch of symbols that could easily conflict with other header files if someone is embedding Julia:NWORDS
,NORETURN
,DLLEXPORT
,MAX_ALIGN
,STORE_ARRAY_LEN
,ARRAY_INLINE_NBYTES
,ENABLE_INFERENCE
,COPY_STACKS
,STDCALL
,NBITS
... (tons of stuff vialibsupport.h
)It seems like it would be better to
JL_
in thejulia.h
filelibsupport.h
only injulia_internal.h
.The text was updated successfully, but these errors were encountered: