JuliaLang/julia

cpp namespace pollution in julia.h

Open

#10,682 opened on 2015年3月30日

GitHub で見る
 (6 comments) (0 reactions) (0 assignees)Julia (48,709 stars) (5,773 forks)batch import
embeddinghelp wanted

説明

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 via libsupport.h)

It seems like it would be better to

  • qualify all preprocessor symbols with JL_ in the julia.h file
  • include libsupport.h only in julia_internal.h.

コントリビューターガイド

cpp namespace pollution in julia.h · JuliaLang/julia#10682 | Good First Issue