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

Enable assertions outside test functionality only in debug mode #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meisterluk
Copy link
Collaborator

  • assert!(…) conditions are checked in any mode
  • debug_assert!(…) conditions are only checked in debug mode

I want to spare the cost of verifying assertions in production and limit verification to debug mode.

assert!(…) conditions are checked in any mode
debug_assert!(…) conditions are only checked in debug mode

I want to spare the cost of verifying assertions in production and limit
verification to debug mode.
@Colfenor
Copy link
Owner

Colfenor commented Feb 1, 2025

LGTM :)

@Colfenor Colfenor self-requested a review February 1, 2025 10:31
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