Add STATIC_REQUIRE assertion

By default, it expands into a `static_assert` + `SUCCEED` pair, but
it can also be deferred to runtime by defining
`CATCH_CONFIG_RUNTIME_STATIC_REQUIRE`, which causes it to expand
into plain old `REQUIRE`.

Closes #1362
Closes #1356
8 files changed
tree: 215e6bd22dddce4d4d173b5bedbd0a86ef47e2a1
  1. .github/
  2. artwork/
  3. CMake/
  4. contrib/
  5. docs/
  6. examples/
  7. include/
  8. misc/
  9. projects/
  10. scripts/
  11. single_include/
  12. test_package/
  13. third_party/
  14. .gitattributes
  15. .gitignore
  16. .travis.yml
  17. appveyor.yml
  18. CMakeLists.txt
  19. CODE_OF_CONDUCT.md
  20. codecov.yml
  21. conanfile.py
  22. LICENSE.txt
  23. README.md
README.md

catch logo

Github Releases Build Status Build status codecov Try online Join the chat in Discord: https://discord.gg/4CWS9zD

The latest version of the single header can be downloaded directly using this link

Catch2 is released!

If you've been using an earlier version of Catch, please see the Breaking Changes section of the release notes before moving to Catch2. You might also like to read this blog post for more details.

What's the Catch?

Catch2 stands for C++ Automated Test Cases in a Header and is a multi-paradigm test framework for C++. which also supports Objective-C (and maybe C). It is primarily distributed as a single header file, although certain extensions may require additional headers.

How to use it

This documentation comprises these three parts:

More