Skip to content

Two assertion mechanisms #157

Answered by stlintel
Vort asked this question in Q&A
Discussion options

You must be logged in to vote

This NDEBUG is not present in gcc and I even don't use MSVCPP.
So I think you can get rid of NDEBUG if you want :)

I coded it with the state of mind like this:
Some asserts are really critical and must be done always and never disabled. These are classic assert().
Others affect performance too much or not interesting outside of new code development -> these are BX_ASSERT

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Vort
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants