imaras

Results 6 comments of imaras

If I modify my header file to define CS_IGNORE and I apply it on a class level generation still fails. ``` #ifndef MY_HEADER_H #define MY_HEADER_H #define CS_IGNORE #include #include class...

The generated C# code for MyClass type is: ``` public unsafe partial class MyClass : IDisposable { [StructLayout(LayoutKind.Sequential, Size = 16)] public partial struct __Internal { internal __IntPtr m_Callback; internal...

The generated C# code for MyClass type is: ``` public unsafe partial class MyClass : IDisposable { [StructLayout(LayoutKind.Sequential, Size = 16)] public partial struct __Internal { internal __IntPtr m_Callback; internal...

Since MyClass is generated as partial class I can add another C# file which provides public method for creating managed type from MyClass.__Internal type. ``` public unsafe partial class MyClass...

I've managed to fix the issue by adding line bellow in Setup method ``` driver.ParserOptions.LanguageVersion = LanguageVersion.CPP17_GNU; ``` Reason why this is fix for the reported issue is that if...

Printing parser error would be the way to go. At the moment exception call stack is printed. ``` Parsing libraries... Parsed 'mylibrary.dll' Parsing code... Parsed 'myheader.h, optional' Processing code... Generating...