Skip to content

feat: declare initVariant() as weak#266

Open
Aymane-ST wants to merge 1 commit intoarduino:masterfrom
Aymane-ST:pr/initvariant-weak
Open

feat: declare initVariant() as weak#266
Aymane-ST wants to merge 1 commit intoarduino:masterfrom
Aymane-ST:pr/initvariant-weak

Conversation

@Aymane-ST
Copy link
Copy Markdown

Summary

Declare initVariant() as weak in ArduinoCore-API.

Why

Some cores provide a default initVariant() implementation while allowing variants or boards to override it. Marking the declaration as weak makes that extension pattern explicit and consistent at the API level.

Compatibility

This is backward-compatible:

  • existing overrides keep working,
  • cores that do not override initVariant() are unaffected,
  • the change only clarifies the intended linkage behavior.

Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.53%. Comparing base (cd91833) to head (7e1cbd8).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #266   +/-   ##
=======================================
  Coverage   95.53%   95.53%           
=======================================
  Files          16       16           
  Lines        1076     1076           
=======================================
  Hits         1028     1028           
  Misses         48       48           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants