scope_exit: Add SCOPE_SUCCESS and SCOPE_EXIT

This commit is contained in:
MerryMage 2018-01-28 17:57:02 +00:00
parent bafb39ebc5
commit 64761dbc72
4 changed files with 89 additions and 34 deletions

View file

@ -153,7 +153,7 @@ Jit::~Jit() {}
void Jit::Run() {
ASSERT(!is_executing);
is_executing = true;
SCOPE_EXIT({ this->is_executing = false; });
SCOPE_EXIT { this->is_executing = false; };
impl->jit_state.halt_requested = false;