Skip to content

Conversation

@PlagueCZ
Copy link
Contributor

Added DP_SUCCESS(ret) macro as a replacement for !DP_FAILED(ret). Cases with direct test of ret == DP_OK are untouched, as success is any non-negative integer, not only zero.

One case can actually now be written more concisely.

Fixes #695

@PlagueCZ PlagueCZ requested a review from a team as a code owner July 10, 2025 12:41
@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request size/S labels Jul 10, 2025
Copy link
Collaborator

@guvenc guvenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The readability is better now.

@guvenc guvenc merged commit 0ffd490 into main Jul 11, 2025
7 checks passed
@guvenc guvenc deleted the feature/dp_success branch July 11, 2025 07:51
@github-project-automation github-project-automation bot moved this to Done in Roadmap Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/networking documentation Improvements or additions to documentation enhancement New feature or request size/S

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

DP_SUCCESS() macro as inverse of DP_FAILED()

4 participants