mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
sys: Improved ScopeGuard syntax a lot
This commit is contained in:
@@ -81,7 +81,10 @@ namespace hex::lang {
|
||||
return { };
|
||||
}
|
||||
|
||||
SCOPE_EXIT( for(auto &node : ast.value()) delete node; );
|
||||
ON_SCOPE_EXIT {
|
||||
for(auto &node : ast.value())
|
||||
delete node;
|
||||
};
|
||||
|
||||
auto validatorResult = this->m_validator->validate(ast.value());
|
||||
if (!validatorResult) {
|
||||
|
||||
Reference in New Issue
Block a user