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

assert(0) is bad practice #1791

Closed
mp15 opened this issue Jun 20, 2024 · 1 comment · Fixed by #1792
Closed

assert(0) is bad practice #1791

mp15 opened this issue Jun 20, 2024 · 1 comment · Fixed by #1792

Comments

@mp15
Copy link
Member

mp15 commented Jun 20, 2024

if you compile with NDEBUG asserts go away

assert(0);

suggest replacing with abort();

@pd3
Copy link
Member

pd3 commented Jun 20, 2024

It should be fixed, thank you.

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 a pull request may close this issue.

2 participants