-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
treewide: replace assert with SEASTAR_ASSERT #2646
Conversation
c397013
to
4afa42b
Compare
Force pushes: fix C++ modules with SEASTAR_ASSERT |
include/seastar/util/assert.hh
Outdated
* under the License. | ||
*/ | ||
/* | ||
* Copyright (C) 2025 ScyllaDB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should put your own (or your employer's) copyright here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
include/seastar/util/assert.hh
Outdated
__PRETTY_FUNCTION__, #x); \ | ||
__builtin_trap(); \ | ||
} \ | ||
} while (0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4-space indents.
Please call a [[noreturn]] function (you can add it in reactor.cc, no need for a new source file) so that we don't have to bring in <cstdio> for everyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I added in log.cc
to keep it in the util
directory.
a67f7f6
to
977af25
Compare
This prevents the need to undefined NDEBUG in seastar source and prevents headers from conditionally excluding these checks.
This prevents the need to undefined NDEBUG in seastar source and
prevents headers from conditionally excluding these checks.
See discussion here: #2539