Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a possibility to explicitly override the soname during initialization #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SanderVocke
Copy link

For purposes of mock testing, it would be very useful if I could explicitly override the .so name when initializing the dynamic loader.

This PR keeps all the existing behavior and initialize_{library} still works as before. But it also introduces a initialize_{library}_explicit where the caller can explicitly pass the .so name.

Please consider merging this as I think it adds some useful functionality while having low impact/risk.

@hpvb
Copy link
Owner

hpvb commented Oct 30, 2023

This generally looks good, but the other features of the generator are document with the examples, this one is not. Could you add a trivial example showing how this is supposed to be used?

If that is in place I'd be happy to merge this!

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