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

条件编译 #1045

Open
wuwenjunwwj opened this issue Jul 11, 2024 · 0 comments
Open

条件编译 #1045

wuwenjunwwj opened this issue Jul 11, 2024 · 0 comments

Comments

@wuwenjunwwj
Copy link

你好,请问下blade如何支持条件编译呢,源码中有两行代码,希望在ubuntu22.04下编译,在ubuntu20.04 下不编译,没找到blade通过定义宏来实现条件编译的方式。请问这种情况要如何解决呢。

//#ifdef MY_FEATURE_ENABLED
options.response_cache_name_ = cache_config.name;
options.response_cache_config_json_ = cache_config.json_config_str;
//#endif

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

No branches or pull requests

1 participant