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

Function protectedFunc

source/MRMesh/MRProtectedRun.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67std::function<void ()> protectedFunc( std::function<void ()> unprotectedFunc )
68{
69 return [f = std::move( unprotectedFunc )]
70 {
71 auto maybeOk = protectedRun( f );
72 if ( !maybeOk )
73 spdlog::error( "protectedFunc error: {}", maybeOk.error() );
74 };
75}
76
77} //namespace MR

Callers 1

sendMethod · 0.85

Calls 2

protectedRunFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected