Visual C++转储预处理器定义
我试图找出 Visual C++ 编译器 的所有预处理器定义( MSVC)。我可以
gcc -dM -E - < /dev/null
在 GCC 上转储所有预处理器定义。我们有与 Visual C++ 编译器类似的编译器吗?
我正在使用 Visual C++ 9.0。
I'm trying to find out all the preprocessor defines of the Visual C++ compiler (MSVC). I can do
gcc -dM -E - < /dev/null
on GCC to dump all the preprocessor defines. Do we have something similar with the Visual C++ compiler compiler?
I'm using Visual C++ 9.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有这样的命令。但是,MSDN(在线和离线)列出了所有预处理器定义,包括 Microsoft 特定的、标准定义的和 ANSI 定义。
There is no such command. However, MSDN (both online and offline) lists all the preprocessor defines, both Microsoft specific, standard defined and ANSI defines.
git clone --深度 1 https://github.com/MicrosoftDocs/cpp-docs.git && vim cpp-docs/docs/preprocessor/predefined-macros.md
或浏览到 https://github.com /MicrosoftDocs/cpp-docs/blob/main/docs/preprocessor/predefined-macros.md
[查看源代码:https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros有 https://github.com/MicrosoftDocs/cpp-docs-pr/blob/live/docs/preprocessor/predefined-macros.md 给出“未找到”]
git clone --depth 1 https://github.com/MicrosoftDocs/cpp-docs.git && vim cpp-docs/docs/preprocessor/predefined-macros.md
or browse to https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/preprocessor/predefined-macros.md
[ view-source:https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros has https://github.com/MicrosoftDocs/cpp-docs-pr/blob/live/docs/preprocessor/predefined-macros.md which gives "Not found" ]