Skip to content

Add Defer implementation#441

Closed
mlw wants to merge 1 commit into
northpolesec:mainfrom
mlw:defer
Closed

Add Defer implementation#441
mlw wants to merge 1 commit into
northpolesec:mainfrom
mlw:defer

Conversation

@mlw

@mlw mlw commented Jun 14, 2025

Copy link
Copy Markdown
Contributor

Adds a Defer object to run code on destruction. The primary purpose is to better ensure cleanup operations (closing files, freeing memory, etc.) are performed in functions that have many return paths.

@mlw mlw added this to the 2025.6 milestone Jun 14, 2025
@mlw mlw requested a review from a team as a code owner June 14, 2025 22:40
@github-actions github-actions Bot added lang/objc++ PRs modifying files in ObjC++ comp/common size/m Size: medium labels Jun 14, 2025
@mlw

mlw commented Jun 16, 2025

Copy link
Copy Markdown
Contributor Author

TIL: absl::Cleanup. Does most of what we need so going to use that instead of adding more code to our repo

@mlw mlw closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/common lang/objc++ PRs modifying files in ObjC++ size/m Size: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant