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

Panic utilities improvements: ensure DEBUG_ASSERT compiles, add ASSERT_EQ etc., add tests #571

Merged
merged 2 commits into from
Sep 12, 2024

Commits on Sep 12, 2024

  1. refactor: panic: ensure that DEBUG_ASSERT's arguments compile

    With the previous implementation, without -DDEBUG_ASSERT=1, the tested
    expression is not compiled and could accidentally get stale. With this
    implementation, the expression is always verified by the compiler, but
    then still optimized out if DEBUG_ASSERT != 1.
    pflanze committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    cc05ca6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    558180b View commit details
    Browse the repository at this point in the history