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

fix: add inline specifier to SFSEPluginVersion macro #190

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

ThirdEyeSqueegee
Copy link
Member

No description provided.

@qudix
Copy link
Contributor

qudix commented Oct 23, 2023

...but why? The only place you should be using that macro is in a TU, where inline isn't necessary.

@ThirdEyeSqueegee
Copy link
Member Author

ThirdEyeSqueegee commented Oct 23, 2023

My bad should've added the why in the PR description, I added it bc lld-link complains about duplicate symbols when compiling a plugin without the inline specifier on the macro. The template I used generates a Plugin.h file which is part of the PCH so it gets included in all TUs. Adding inline gets rid of the error, I don't think it has any unwanted side effects

@ThirdEyeSqueegee ThirdEyeSqueegee merged commit a0207a8 into main Oct 24, 2023
4 checks passed
@ThirdEyeSqueegee ThirdEyeSqueegee deleted the fix/macro branch October 24, 2023 02:32
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