commit | 4b68df32835d04d94552cf577084d247b9c44696 | [log] [tgz] |
---|---|---|
author | onqtam <vik.kirilov@gmail.com> | Fri Mar 17 20:45:54 2017 +0200 |
committer | onqtam <vik.kirilov@gmail.com> | Tue May 16 00:22:15 2017 +0300 |
tree | 6f36184bc3810c494fe50134b07150ac79b0e362 | |
parent | 2d93e0488ce1c3a0bffe9213243f25bf60722494 [diff] |
builds with -fno-exceptions should pass now - relates #12
diff --git a/scripts/code_coverage_source/test.cpp b/scripts/code_coverage_source/test.cpp index 30652c0..09187ff 100644 --- a/scripts/code_coverage_source/test.cpp +++ b/scripts/code_coverage_source/test.cpp
@@ -18,7 +18,11 @@ static int throws(bool in) { if(in) +#ifndef DOCTEST_CONFIG_NO_EXCEPTIONS throw false; +#else // DOCTEST_CONFIG_NO_EXCEPTIONS + return 0; +#endif // DOCTEST_CONFIG_NO_EXCEPTIONS return 42; }