You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/trung/cppsharp/generated/Interface.cs(80086,330): error CS0103: The name 'B_ALIGN_HORIZONTAL_CENTER' does not exist in the current context [/home/trung/cppsharp/HaikuApiGenerator.csproj]
- Only put top-level enums into the `Symbols` class. Otherwise, name
clashes may occur. Furthermore, it does not make sense to allow direct
access to nested enums in C# code, as they require entering the class
scope in the original C++ code.
- Add some regex hacks for mono/CppSharp#1822.
Everything should build again after
https://review.haiku-os.org/c/haiku/+/7377 gets merged into Haiku.
trungnt2910
added a commit
to trungnt2910/dotnet-haiku
that referenced
this issue
Jan 29, 2024
- Only put top-level enums into the `Symbols` class. Otherwise, name
clashes may occur. Furthermore, it does not make sense to allow direct
access to nested enums in C# code, as they require entering the class
scope in the original C++ code.
- Add some regex hacks for mono/CppSharp#1822.
Everything should build again after
https://review.haiku-os.org/c/haiku/+/7377 gets merged into Haiku.
trungnt2910
added a commit
to trungnt2910/dotnet-haiku
that referenced
this issue
Jan 29, 2024
- Only put top-level enums into the `Symbols` class. Otherwise, name
clashes may occur. Furthermore, it does not make sense to allow direct
access to nested enums in C# code, as they require entering the class
scope in the original C++ code.
- Add some regex hacks for mono/CppSharp#1822.
Everything should build again after
https://review.haiku-os.org/c/haiku/+/7377 gets merged into Haiku.
Brief Description
OS:
Windows/OS X/ Linux (Ubuntu 23.04)Used headers
SeparatorView.h
from Haiku: https://github.com/haiku/haiku/blob/master/headers/os/interface/SeparatorView.hwith this declaration:
Used settings
Target:
MSVC/GCC/ClangOther settings
Stack trace or incompilable generated code
Generated code:
Interesting part:
Compile error:
Probable cause:
CppSharp/src/Generator/Generators/CSharp/CSharpExpressionPrinter.cs
Lines 70 to 72 in 9071cd2
The C# generator only expands into constructors and resolve
enum
s when the constructor contains only one argument.The text was updated successfully, but these errors were encountered: