-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ClangSharp self-hosting by duplicating ...
Generated.cs is now duplicated inside ClangSharpPInvokeGenerator so that it can self hosted.
- Loading branch information
Showing
10 changed files
with
2,077 additions
and
115 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace ClangSharp | ||
{ | ||
using System.Runtime.InteropServices; | ||
|
||
public partial struct CXString | ||
{ | ||
public override string ToString() | ||
{ | ||
string retval = Marshal.PtrToStringAnsi(this.data); | ||
clang.disposeString(this); | ||
return retval; | ||
} | ||
} | ||
|
||
public partial struct CXType | ||
{ | ||
public override string ToString() | ||
{ | ||
return clang.getTypeSpelling(this).ToString(); | ||
} | ||
} | ||
|
||
public partial struct CXCursor | ||
{ | ||
public override string ToString() | ||
{ | ||
return clang.getCursorSpelling(this).ToString(); | ||
} | ||
} | ||
|
||
public partial struct CXDiagnostic | ||
{ | ||
public override string ToString() | ||
{ | ||
return clang.getDiagnosticSpelling(this).ToString(); | ||
} | ||
} | ||
} |
Oops, something went wrong.