Skip to content

C++ API for loading plugins#267

Open
RMeli wants to merge 6 commits into
metatomic-corefrom
rmeli-cpp-plugin-load
Open

C++ API for loading plugins#267
RMeli wants to merge 6 commits into
metatomic-corefrom
rmeli-cpp-plugin-load

Conversation

@RMeli

@RMeli RMeli commented Jun 23, 2026

Copy link
Copy Markdown
Member

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

📚 Download documentation for this pull-request

⚙️ Download Python wheels for this pull-request (you can install these with pip)

@RMeli RMeli requested a review from Luthaf June 23, 2026 10:09
Comment thread metatomic-core/include/metatomic/plugin.hpp Outdated
Comment thread metatomic-core/tests/plugins.cpp Outdated
}

SECTION("C++ API") {
REQUIRE_THROWS_AS(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the error message here as well, like below

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error was not properly handled. I added a capture for Error::CallbackError and return Error:InvalidParameter instead with a clearer error message. Is this what you had in mind?

Comment thread metatomic-core/include/metatomic/plugin.hpp
@RMeli RMeli requested a review from Luthaf June 23, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants