Viewing is open to everyone. Downloading and starring need a GitHub sign-in.
Sign in with GitHub
check.h
v0.1.0-build.85
Latest
Commit ede38f5
Sign in with GitHub to download. Each download is recorded with your GitHub username.
| 1 | |
| 2 | |
| 3 | |
| 4 | <cstdio> |
| 5 | <cstdlib> |
| 6 | |
| 7 | /* Always-on test assertion. Unlike assert(), it is not compiled out by |
| 8 | * NDEBUG, so Release CI builds execute every check. */ |
| 9 | (condition) \ |
| 10 | do { \ |
| 11 | if (!(condition)) { \ |
| 12 | std::(stderr, "%s:%d: check failed: %s\n",,, #condition); \ |
| 13 | std::(1); \ |
| 14 | } \ |
| 15 | } while (0) |
| 16 | |
| 17 |