Commit 89d8c45
assert: use ASSERT_IF_DEBUG for known_hash invariants
Switch the known_hash debug invariants from assert() to
ASSERT_IF_DEBUG() so the extra X11 hashing only occurs in debug
builds. Dash always compiles with assertions enabled, so plain
assert() would add unnecessary overhead in release builds.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 01e72cb commit 89d8c45
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3977 | 3977 | | |
3978 | 3978 | | |
3979 | 3979 | | |
3980 | | - | |
| 3980 | + | |
3981 | 3981 | | |
3982 | 3982 | | |
3983 | 3983 | | |
| |||
4189 | 4189 | | |
4190 | 4190 | | |
4191 | 4191 | | |
4192 | | - | |
| 4192 | + | |
4193 | 4193 | | |
4194 | 4194 | | |
4195 | 4195 | | |
| |||
4358 | 4358 | | |
4359 | 4359 | | |
4360 | 4360 | | |
4361 | | - | |
| 4361 | + | |
4362 | 4362 | | |
4363 | 4363 | | |
4364 | 4364 | | |
| |||
0 commit comments