MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / protectedRunEx_

Function protectedRunEx_

source/MRMesh/MRProtectedRun.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool 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

Callers 1

protectedRunFunction · 0.85

Calls 1

protectedRun_Function · 0.85

Tested by

no test coverage detected