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

Export from DLL #40

Open
malkindan opened this issue Mar 27, 2017 · 3 comments
Open

Export from DLL #40

malkindan opened this issue Mar 27, 2017 · 3 comments
Milestone

Comments

@malkindan
Copy link

How do I use the BETTER_ENUM macro if I need to add declspec(_dllexport) ?

@aantron
Copy link
Owner

aantron commented Mar 27, 2017

It looks like enum.h would have to be modified to support a definable macro, which is expanded either after the class keyword or before each of the members you would like to export. Which do you think is more appropriate?

The user would be able to do something like

#define BETTER_ENUMS_EXPORT __declspec(dllexport)
#include <enum.h>

and either put that into a header file in their own project that they then include, or supply the definition on the command line.

If you would like to make a PR, I will be happy to review it.

@malkindan
Copy link
Author

malkindan commented Mar 27, 2017 via email

@aantron
Copy link
Owner

aantron commented Mar 27, 2017

Fork this repo, make your changes, push them to the fork, then click the "open pull request" button next to your branch. You may want to see this help page.

@aantron aantron added this to the 0.11.3 milestone Aug 17, 2019
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

No branches or pull requests

2 participants