![]() |
VCV Rack API v2
|
Defers running code until the scope is destructed. More...
#include <common.hpp>
Public Member Functions | |
| DeferWrapper (F f) | |
| ~DeferWrapper () | |
Public Attributes | |
| F | f |
Defers running code until the scope is destructed.
From http://www.gingerbill.org/article/defer-in-cpp.html. Example:
file = fopen(...);
DEFER({
fclose(file);
});
|
inline |
|
inline |
| F rack::DeferWrapper< F >::f |