预处理头文件时是否有显示预处理器选项?
翻阅MSDN,我会说不;不过,我想在放弃之前我应该在这里问一下。
Visual Studios 是否有一个在包含头文件时显示的预处理器选项?具体来说,我正在寻找类似于下面链接中描述的 /verbose:lib 的内容。
http://msdn.microsoft.com/en -US/library/wdsk6as6%28v=VS.80%29.aspx
Looking through the MSDN, I would say no; however, I thought I would ask here before I give up.
Is there a preprocessor option for Visual Studios that displays when a header file is included? Specifically, I'm looking for something similar to /verbose:lib described in the link below.
http://msdn.microsoft.com/en-US/library/wdsk6as6%28v=VS.80%29.aspx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
开关
/showInincludes
(列出包含文件)就是您要查找的内容,如 MSDN。以下是该开关生成的输出示例:给定文件 main.c,包括:
和文件 foo.h,包括:
生成的输出为:
The switch
/showIncludes
(List Include Files) is what you are looking for, as documented in MSDN. Here is a sample of the output produced by that switch:Given the file main.c, consisting of:
and the file foo.h, consisting of:
The output produced is: