-
Notifications
You must be signed in to change notification settings - Fork 525
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
CS_VALUE_TYPE affects parent type if applied to inner class #559
Comments
Looking at the handling code in
Could you post a minified reproduction so we can take a look at it? |
Yes, sure. But sorry I don't understand what do you mean when say
? Short project containing file.h ?:
|
If that's enough to reproduce it then it's perfect, thanks. |
https://www.dropbox.com/s/7wo5ruqc73j2h2q/Generator.zip?dl=0
First argument of generator.exe is Directory with TestFile.h, second is OutputDirectory |
Thanks for the effort in putting up a project. There should no need for it though, the source code above should be enough for me to reproduce it. |
@tritao I would like to work on this (if you haven't started this yet)... I would need some help as I had a look and couldn't find how |
Sure Abhinav. Preprocessed entities are handled by the parser in Parser::HandlePreprocessedEntities, https://github.com/mono/CppSharp/blob/master/src%2FCppParser%2FParser.cpp#L2603. I am assuming the error is in the parser, but I haven't confirmed yet. You will want to test in Debug mode to be able to properly debug the native C++ code. It can be tricky to figure out issues in the native code because Clang types can be very opaque to the debugger, so ask me for help if you get stuck. |
Sure.
Last time i tried, i failed to compile CppSharp in Debug mode. I'll try
again and ask you if i get stuck.
Thanks :)
|
@tritao I tried debugging the code but couldn't. I also tried building C++# in debug mode but got to many clang errors and the build was never successful. Please help. |
@genuinelucifer Feel free to try this one again now. |
I expect that Record remain as 'class' in generated stub and only ItemsIterator becomes struct in code below:
But both classes becomes 'struct' in generated stub.
Of cource I can do it by other way
but default behaviour of CS_VALUE_TYPE seems to be strange.
The text was updated successfully, but these errors were encountered: