Use _LIBCPP_DEBUG_ASSERT in <__hash_table>
Details
Details
- Reviewers
• Quuxplusone ldionne Mordante - Group Reviewers
Restricted Project - Commits
- rG875dd75e5ab4: [libc++][NFC] Use _LIBCPP_DEBUG_ASSERT in <__hash_table>
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
libcxx/include/__hash_table | ||
---|---|---|
2488 | In this case I have a slight preference to keep the original code, since it doesn't remove the #if. But I won't object against the change. |
libcxx/include/__hash_table | ||
---|---|---|
2488 | I found it much easier to read the code because you have the #if _LIBCPP_DEBUG_LEVEL == 2 do_something(); #else do_essentially_the_same_thing(); #endif all over this file, but almost never any assertions in the if block. Now you never have assertions in the same #if block. |
libcxx/include/__hash_table | ||
---|---|---|
2488 | I hadn't looked at the entire file. But I see what you mean. Then let's keep your changes. |
In this case I have a slight preference to keep the original code, since it doesn't remove the #if. But I won't object against the change.