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

treewide: replace assert with SEASTAR_ASSERT #2646

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

rockwotj
Copy link
Contributor

@rockwotj rockwotj commented Feb 17, 2025

This prevents the need to undefined NDEBUG in seastar source and
prevents headers from conditionally excluding these checks.

See discussion here: #2539

@rockwotj rockwotj force-pushed the ss_assert branch 3 times, most recently from c397013 to 4afa42b Compare February 17, 2025 17:24
@rockwotj
Copy link
Contributor Author

Force pushes: fix C++ modules with SEASTAR_ASSERT

* under the License.
*/
/*
* Copyright (C) 2025 ScyllaDB.
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

__PRETTY_FUNCTION__, #x); \
__builtin_trap(); \
} \
} while (0)
Copy link
Member

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.

Copy link
Contributor Author

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.

@rockwotj rockwotj force-pushed the ss_assert branch 3 times, most recently from a67f7f6 to 977af25 Compare February 17, 2025 21:39
This prevents the need to undefined NDEBUG in seastar source and
prevents headers from conditionally excluding these checks.
@avikivity avikivity merged commit 7a91062 into scylladb:master Feb 17, 2025
15 checks passed
@rockwotj rockwotj deleted the ss_assert branch February 18, 2025 00:08
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

Successfully merging this pull request may close these issues.

2 participants