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

Generate c header file? #186

Open
you74674 opened this issue Mar 23, 2021 · 3 comments
Open

Generate c header file? #186

you74674 opened this issue Mar 23, 2021 · 3 comments

Comments

@you74674
Copy link

With the "Generate .lib via MS Library Manager" option, I can write a header file and link against the lib file.
Since there are only function definitions in this header file, I wonder if there can be a feature to generate not only a lib file, but also a header file?
It will need the return type and the parameter type of the exported functions. Is there way to extract the these information?

@3F
Copy link
Owner

3F commented Mar 23, 2021

Here I commented something about it #60 (comment)

It will need the return type and the parameter type of the exported functions. Is there way to extract the these information?

Only manual implementation for today. But I think it's a good thing to review this task later as part of the Conari project to provide the feature for the projects like DllExport etc. Follow the news.

@3F 3F added the suggestion label Mar 23, 2021
@you74674
Copy link
Author

Oh, somehow I didn't found that issue. I only searched for header but not .h.
Thanks for the reply. For now maybe I should try if it can be done using cecil or some other C# tools.

@3F
Copy link
Owner

3F commented Mar 24, 2021

@you74674 Keep it open for future tasks. It will be considered as a suggestion since it was not the first attempt to achieve this.

@3F 3F reopened this Mar 24, 2021
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