MeshLib C++ Docs
Loading...
Searching...
No Matches
MRProtectedRun.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRExpected.h"
4
5namespace MR
6{
9
10
14MRMESH_API Expected<void> protectedRun( const std::function<void ()>& task );
15
19MRMESH_API std::function<void ()> protectedFunc( std::function<void ()> unprotectedFunc );
20
21}
#define MRMESH_API
Definition MRMeshFwd.h:80
tl::expected< T, E > Expected
Definition MRExpected.h:31
std::function< void()> protectedFunc(std::function< void()> unprotectedFunc)
Expected< void > protectedRun(const std::function< void()> &task)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8