| 1008 | |
| 1009 | #ifndef DOCTEST_CONFIG_NO_EXCEPTIONS |
| 1010 | DOCTEST_NORETURN void throwException() { |
| 1011 | g_cs->shouldLogCurrentException = false; |
| 1012 | throw TestFailureException(); // NOLINT(hicpp-exception-baseclass) |
| 1013 | } |
| 1014 | #else // DOCTEST_CONFIG_NO_EXCEPTIONS |
| 1015 | void throwException() {} |
| 1016 | #endif // DOCTEST_CONFIG_NO_EXCEPTIONS |