You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It changes now to the following behavior:
- Debug && !defined(CAPSTONE_ASSERTION_WARNINGS)
- `assert(expr)` code is included, warning is not printed if hit.
- Debug && defined(CAPSTONE_ASSERTION_WARNINGS)
- `assert(expr)` code is included, warning is printed if hit.
- Release && !defined(CAPSTONE_ASSERTION_WARNINGS)
- `assert(expr)` code is not included, warning is not printed if hit.
- Release && defined(CAPSTONE_ASSERTION_WARNINGS)
- `assert(expr)` code is not included, warning is printed if hit.
This also fixes the inconsistent (buggy) behavior from before.
The variants of CS_ASSERT_RET(_VAL) did not return if
the assertions were disabled (release build).
So the semantics were different.
0 commit comments