Index: src/pdf/SkScopeExit.h |
diff --git a/src/pdf/SkScopeExit.h b/src/pdf/SkScopeExit.h |
index 5b7bcdc07686cb334417659cb0d312dcf36a9c53..4528c3c5b47cc8c913cd1dc1b7a37681ee232307 100644 |
--- a/src/pdf/SkScopeExit.h |
+++ b/src/pdf/SkScopeExit.h |
@@ -47,4 +47,8 @@ inline SkScopeExit<Fn> SkMakeScopeExit(Fn&& fn) { |
SK_UNUSED auto&& SK_MACRO_APPEND_LINE(at_scope_exit_) = \ |
SkMakeScopeExit([&]() { stmt; }); |
+#define SK_AT_SCOPE_EXIT2(...) \ |
+ SK_UNUSED auto&& SK_MACRO_APPEND_LINE(at_scope_exit_) = \ |
+ SkMakeScopeExit([&]() { __VA_ARGS__ }); |
+ |
#endif // SkScopeExit_DEFINED |