| 38 | } |
| 39 | |
| 40 | bool protectedRunEx_( const std::function<void ()>& task, std::string & s ) |
| 41 | { |
| 42 | #if defined _WIN32 && defined NDEBUG |
| 43 | __try |
| 44 | { |
| 45 | return protectedRun_( task, s ); |
| 46 | } |
| 47 | __except ( EXCEPTION_EXECUTE_HANDLER ) |
| 48 | { |
| 49 | s = "Unknown exception occurred"; |
| 50 | return false; |
| 51 | } |
| 52 | #else |
| 53 | return protectedRun_( task, s ); |
| 54 | #endif |
| 55 | } |
| 56 | |
| 57 | } // anonymous namespace |
| 58 |
no test coverage detected