Fixed preprocessor evaluation of scope_exit macro