Skip to content

Expose ASDF_ERROR_ macros and extension copy updates#230

Merged
embray merged 2 commits into
asdf-format:mainfrom
embray:issue-229
Jul 15, 2026
Merged

Expose ASDF_ERROR_ macros and extension copy updates#230
embray merged 2 commits into
asdf-format:mainfrom
embray:issue-229

Conversation

@embray

@embray embray commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Description

Resolves #229 and improves the ability to report errors in asdf_<extension>_clone methods.

AI Disclosure

No AI tools used.

Mostly this is just used for error reporting when copying extension
values, since errors typically go through a file (avoiding using the
library global error context, which is better also for extension authors).

Having this might also be useful in the future for other reasons, such
as using custom allocators associated with a file (which might also
necessitate adding this to the dealloc method but we'll cross that
bridge when we get there)
@embray embray added the refactoring Changes to code structure or APIs label Jul 15, 2026
These are here primarily for use by third-party extension code to set
errors on the file.

Also some general cleanup of the error handling code and various
accumulated cruft from past revisions.  I'm still not entirely happy
with it...
@embray
embray merged commit 4b46445 into asdf-format:main Jul 15, 2026
12 checks passed
@embray
embray deleted the issue-229 branch July 15, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Changes to code structure or APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose public versions of the error setting macros

1 participant