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

refactor(macro): use CHECK_* to replace dassert_* (part 3) #1226

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

acelyc111
Copy link
Member

#1204

  • all dassert and dassert_f have been removed
  • dassert -> CHECK
  • dassert/dassert_f(a == b, msg) -> CHECK_EQ_MSG(a, b, msg)
  • dassert/dassert_f(a > b, msg) -> CHECK_GT_MSG(a, b, msg)
  • dassert/dassert_f(a >= b, msg) -> CHECK_GE_MSG(a, b, msg)
  • dassert/dassert_f(a < b, msg) -> CHECK_LT_MSG(a, b, msg)
  • dassert/dassert_f(a <= b, msg) -> CHECK_LE_MSG(a, b, msg)
  • remove some verbose and meanless messages

TODO: refactor dangling-else CHECK(false, ...)

@github-actions github-actions bot added the cpp label Nov 6, 2022
levy5307
levy5307 previously approved these changes Nov 7, 2022
src/runtime/rpc/network.cpp Outdated Show resolved Hide resolved
src/replica/prepare_list.cpp Outdated Show resolved Hide resolved
src/replica/replica_2pc.cpp Outdated Show resolved Hide resolved
src/runtime/rpc/asio_net_provider.cpp Outdated Show resolved Hide resolved
src/runtime/service_api_c.cpp Outdated Show resolved Hide resolved
src/runtime/task/simple_task_queue.cpp Outdated Show resolved Hide resolved
src/runtime/task/task.cpp Outdated Show resolved Hide resolved
src/utils/errors.h Outdated Show resolved Hide resolved
src/utils/errors.h Outdated Show resolved Hide resolved
@acelyc111 acelyc111 merged commit e2a0088 into apache:master Nov 7, 2022
acelyc111 added a commit to acelyc111/pegasus that referenced this pull request Nov 7, 2022
@empiredan empiredan mentioned this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants