-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Comments
It looks like 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. |
I personally would prefer whole class / struct to be exportable. How do I
ask for PR ?
…On Mar 27, 2017 9:13 PM, "Anton Bachin" ***@***.***> wrote:
It looks like enum.h would have to be modified to support a definable
macro, which is expanded either after the class keyword
<https://github.com/aantron/better-enums/blob/37d8f987ca939af846a2d29a8f8198f9bf3ac4b7/enum.h#L588>
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJwzf8Awk9HTJoFZlYS_iaS6G5w4QEShks5rp-jFgaJpZM4MqMMq>
.
|
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. |
How do I use the BETTER_ENUM macro if I need to add declspec(_dllexport) ?
The text was updated successfully, but these errors were encountered: