Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
scope_guard.hpp File Reference
#include <utility>

Go to the source code of this file.

Classes

class  pulp::runtime::ScopeGuard< F >

Namespaces

namespace  pulp
namespace  pulp::runtime

Macros

#define PULP_CONCAT_IMPL(a, b)
#define PULP_CONCAT(a, b)
#define PULP_ON_SCOPE_EXIT(code)

Functions

template<typename F>
ScopeGuard< F > pulp::runtime::make_scope_guard (F &&fn)

Macro Definition Documentation

◆ PULP_CONCAT

#define PULP_CONCAT ( a,
b )
Value:
#define PULP_CONCAT_IMPL(a, b)
Definition scope_guard.hpp:38

◆ PULP_CONCAT_IMPL

#define PULP_CONCAT_IMPL ( a,
b )
Value:
a##b

◆ PULP_ON_SCOPE_EXIT

#define PULP_ON_SCOPE_EXIT ( code)
Value:
auto PULP_CONCAT(_scope_guard_, __LINE__) = \
::pulp::runtime::make_scope_guard([&]() { code; })
#define PULP_CONCAT(a, b)
Definition scope_guard.hpp:39