Define MASS_SCOPE_DEFER

Define MASS_SCOPE_DEFER#

Define Documentation#

MASS_SCOPE_DEFER(...)#

Run the specified code block when exiting the current scope

const auto file = openFile();
MASS_SCOPE_DEFER(&) {
    file.close();
}