JuliaLang/julia

cpp namespace pollution in julia.h

Open

#10,682 建立於 2015年3月30日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)Julia (48,709 star) (5,773 fork)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.

貢獻者指南