-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #442 from tannergooding/sml-fix
Add a generate-native-bitfield-attribute switch
- Loading branch information
Showing
23 changed files
with
3,538 additions
and
68 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
sources/ClangSharp.PInvokeGenerator/Abstractions/BitfieldDesc.cs
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,21 @@ | ||
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace ClangSharp.Abstractions; | ||
|
||
public struct BitfieldDesc | ||
{ | ||
public Type TypeBacking { get; set; } | ||
|
||
public List<BitfieldRegion> Regions { get; set; } | ||
} | ||
|
||
public struct BitfieldRegion | ||
{ | ||
public string Name { get; set; } | ||
|
||
public long Offset { get; set; } | ||
|
||
public long Length { get; set; } | ||
} |
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
Oops, something went wrong.