gpt4 book ai didi

c - 如何让VS2017忽略特定编译器的关键字?

转载 作者:行者123 更新时间:2023-11-30 14:50:24 25 4
gpt4 key购买 nike

我使用 Visual Studio 2017 和 ReSharper 2017.2 作为嵌入式项目的代码编辑器。我设法配置了除一件事之外的所有内容:

snippet screenshot

如何让 VS/R# 忽略特定关键字 _Interrupt1? (此错误会导致其他副作用)。

我尝试将其添加为预处理器定义(项目属性 -> C/C++ -> 预处理器 -> 预处理器定义),但没有帮助。

最佳答案

我不确定 R#,但在 VS 中你可以尝试全局定义:

#ifdef __INTELLISENSE__
#define _Interrupt1
#endif

从 Intellisense 解析中隐藏 _Interrupt1

为了完整起见,感谢@Hans Passant,对 RS 使用 __RESHARPER__

关于c - 如何让VS2017忽略特定编译器的关键字?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49028236/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com