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 function by ordinal #188

Open
yuval7451 opened this issue May 2, 2021 · 4 comments
Open

Export function by ordinal #188

yuval7451 opened this issue May 2, 2021 · 4 comments

Comments

@yuval7451
Copy link

. . .

The question is related to:

  • DllExport - latest:

Is it possible to export a function by ordinal ?,
Would love to have control over that😁

@3F
Copy link
Owner

3F commented May 3, 2021

Not sure what do you mean for "to export a function by ordinal". Can you illustrate the expected behavior?
Maybe you meant the same ordinals in export table using the order of the definitions in src? But I remember this is already so

@yuval7451
Copy link
Author

In c or cpp you can create a definition file which will state your exports, you can specify the function name and right after it the ordinal it is exported to, I would be nice if in the dllexport attribute you will be able to specify a ordinal or via a different settings file, the main usage here is for having more control over the exported functions other then the order they appear in your code,

@3F
Copy link
Owner

3F commented May 4, 2021

Oh, I see. Why not.
.def will be a bit weird in dotnet environment, so either attributes or some option in our configuration.

Also, never had to avoid names in my practice for C++ but why also not to allow optionally skip the names. By the way, are you trying to reduce the size or some obfuscation, or?

@3F 3F added suggestion and removed question labels May 4, 2021
@3F
Copy link
Owner

3F commented May 4, 2021

Today it's not possible. But this feature will be considered later. Thanks for the suggestion. Thanks for using!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants