Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] __RT_KERNEL_SOURCE__宏所在的位置是不是有些不合理? #9380

Open
git-siyun opened this issue Sep 3, 2024 · 1 comment

Comments

@git-siyun
Copy link

Describe problem solved by the proposed feature

不是太理解为什么要将这个__RT_KERNEL_SOURCE__宏放置到每个单独文件的选项设置框里。
有个内核文件不小心从工程中移除了,再手动添加该文件就开始报错,找了好久最后使用env重刷工程才恢复正常,经过对比才发现有这个宏存在。手动添加文件后,还要在文件单独选项设置框里添加__RT_KERNEL_SOURCE__
image

Describe your preferred solution

No response

Describe possible alternatives

No response

@BernardXiong
Copy link
Member

这些应该都是由工具自动添加的,所以如果都是由scons来处理,可以避免这样的问题。这个宏应该用于区分一些代码的条件分支情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants