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

rjd_result: replace RJD_RESULT_OK() with inline function #26

Open
rdunnington opened this issue Nov 29, 2020 · 0 comments
Open

rjd_result: replace RJD_RESULT_OK() with inline function #26

rdunnington opened this issue Nov 29, 2020 · 0 comments

Comments

@rdunnington
Copy link
Owner

rdunnington commented Nov 29, 2020

Less macros is better. Let's replace RJD_RESULT_OK() with an inline function that returns an empty rjd_result, equivalent to what the macro does:

static inline rjd_result_ok(void)
{
    return (struct rjd_result){0};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant