Repository navigation
Replies: 3 comments
|
I've been able to mitigate the problem somewhat by reducing the number of included headers. But now I'm facing another problem. How can a wrap methods that return a fixed size C-style array? The source code has annotations like However, I can't seem to find this information in the AST. The Any help would be appreciated. |
|
CppSharp does not really handle things like As for it not showing, I am guessing there is a bug in the implementation. I don't really have time to work on fixing this right now, but feel free to send a PR and I will review it. |
|
Thanks for the clarification. I'm afraid I wouldn't even know where to start to create a PR for this. In the meantime I've worked around the issue by rewriting all headers so that the macro is at the beginning of the line, e.g. Now the next question: How can I tell CppSharp to wrap functions with a C-style array of variable size as a parameter? |
Uh oh!
There was an error while loading. Please reload this page.
First of all I want to thank you for creating and sharing this tool! It could save us (and many others) a lot of tedious work.
However, I've run into some unexpected problems. I am trying to generate a CLI wrapper for a fairly large C++ project and each time I run the tool, I get slightly different output: Some methods are added or removed, and sometimes a method even ends up in the wrong class.
So far I haven't looked into the code, but it feels like there is some kind of race condition. Have you noticed similar behavior?
All reactions