-
Notifications
You must be signed in to change notification settings - Fork 467
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
Improve the code style by introducing macros #2521
Comments
@AntiTopQuark Would you like to take this issue? |
I’d be happy to take on this issue. :) |
The first macro is duplicated with the current GET_OR_RET macro. |
For the second I think it depends on the context, e.g. rocksdb::Status -> Status? rocksdb::Status -> rocksdb::Status? We can extend GET_OR_RET for the latter, and the former doesn't require new macro. |
Yes, my bad. GET_OR_RET allows ignoring the return value, so the former one is unnecessary. |
Followup code improvements mentioned in PR #2508. Currently, we check and return error if the status is not ok in many many places, which can be improved by introducing macros.
The naming candidates can be:
and for converting the rocksdb status if there is an error:
Originally posted by @mapleFU in #2508 (review)
The text was updated successfully, but these errors were encountered: