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

除过初始化之外,如果模块之间解耦,那是不是得新定义一个宏id,这样子其实两个模块都会依赖这个宏文件,还是没有完美解耦 #14

Open
ruiwarn opened this issue Oct 4, 2024 · 2 comments

Comments

@ruiwarn
Copy link

ruiwarn commented Oct 4, 2024

No description provided.

@NevermindZZT
Copy link
Owner

依赖一个定义宏的文件,其实就和依赖标准库的头文件一样,本身不会对编译什么的产生影响

@ruiwarn
Copy link
Author

ruiwarn commented Oct 22, 2024

这个深度使用了,但是只能用于初始化的解耦,对于模块之间互相调用来说,还是没有办法解决,因为模块之间互相调用是携带参数的,但是cevent这个参数被放在生产者那里了,消费者无法传递参数进去

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