Usages of assert in expressions with side effects #1

Open
rg3 opened this Issue Feb 15, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@rg3
Owner

rg3 commented Feb 15, 2014

The code used a lot of asserts with expressions that have side effects. Fortunately, the build system does not define NDEBUG in any cases, but it would be nice to replace standard assert() with another variant that is safer in this regard.

Note: if assert() is turned into a no-op, a lot of unit tests would fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment