Skip to content

[hal] Resource classes: Use expected, refactor errors#8768

Open
PeterJohnson wants to merge 2 commits intowpilibsuite:2027from
PeterJohnson:hal-handle-resource-upgrade
Open

[hal] Resource classes: Use expected, refactor errors#8768
PeterJohnson wants to merge 2 commits intowpilibsuite:2027from
PeterJohnson:hal-handle-resource-upgrade

Conversation

@PeterJohnson
Copy link
Copy Markdown
Member

Also revamp SetLastError et al; Instead of taking status by pointer, take by value and return new status instead. Rename from SetLast to Make to make this new usage obvious.

Also move declarations for the error functions from duplicated in the per-target HALInternal.hpp to a common ErrorHandling.hpp.

Instead of taking status by pointer, take by value and return new
status instead.  Rename from SetLast to Make to make this new usage obvious.

Also move from per-target HALInternal.hpp to common ErrorHandling.hpp.
@PeterJohnson PeterJohnson requested review from a team as code owners April 13, 2026 05:02
@github-actions github-actions bot added component: hal Hardware Abstraction Layer 2027 2027 target labels Apr 13, 2026
@PeterJohnson PeterJohnson force-pushed the hal-handle-resource-upgrade branch from 6e2f1e0 to 9793f7a Compare April 13, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2027 2027 target component: hal Hardware Abstraction Layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant