Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Unified Diff: src/pdf/SkScopeExit.h

Issue 2330503002: work in progress (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFResourceDict.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/pdf/SkPDFResourceDict.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698