···11# [DCHECK](https://github.com/tekknolagi/dcheck)
2233-This very small assert library provides assert-like macros for checking
33+This very small assert library provides `asser`t-like macros for checking
44conditions at runtime.
5566Improvements over raw `assert`:
7788+* Semantic checks for indices, bounds, ranges, unimplemented features, and
99+ unreachable states
810* Includes `printf`-compatible error message formatting
911* `NDEBUG` and always-on variants
1012* Bounds/index checking built-in
···18201921int main() {
2022 // ...
2323+2424+ CHECK(true, "thank goodness");
21252226 int arr[3];
2327 // Array index won't crash
···4448 // ...
4549}
4650```
5151+5252+Add `D` before `CHECK`, `CHECK_INDEX`, `CHECK_BOUND`, and `CHECK_RANGE` if you
5353+want the check to go away in `NDEBUG` mode. Like `DCHECK_INDEX` and so forth.
47544855Happy hacking.