-
Notifications
You must be signed in to change notification settings - Fork 7.7k
fix(net): Rework NO_GLOBALS to not act on dependent network classes #11933
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
Conversation
Test Results
76 files 76 suites 15m 7s ⏱️
38 tests 38 ✅ 0 💤 0 ❌
241 runs 241 ✅ 0 💤 0 ❌
Results for commit 9e58504.
♻️ This comment has been updated with latest results.
👋 Hello me-no-dev, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
This pull request standardizes the way global instances are conditionally defined across several network-related libraries. Specifically, it ensures that global objects like
WiFi,ETH,PPP,Network, andMDNSare only instantiated when the appropriate macros are not defined, improving consistency and configurability throughout the codebase.Conditional global instance definitions:
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_ETH)guard around the globalETHinstance inETH.cppfor consistency with other modules.#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_PPP)guard around the globalPPPinstance inPPP.cpp.WiFi,Network, andMDNSare only declared when the appropriate macros are not defined in their respective header files (WiFi.h,NetworkManager.h,ESPmDNS.h). [1] [2] [3]Closes: #11871