-
Notifications
You must be signed in to change notification settings - Fork 54
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 #77 from nihohit/no-class
Allow generating bindings without a class.
- Loading branch information
Showing
4 changed files
with
87 additions
and
8 deletions.
There are no files selected for viewing
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,12 @@ | ||
#[repr(C)] | ||
pub enum Foo { | ||
Bar = 1, | ||
Baz = 2, | ||
} | ||
|
||
#[repr(C)] | ||
pub struct Vec3 { | ||
x: f32, | ||
y: f32, | ||
z: f32, | ||
} |
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 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 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,31 @@ | ||
// <auto-generated> | ||
// This code is generated by csbindgen. | ||
// DON'T CHANGE THIS DIRECTLY. | ||
// </auto-generated> | ||
#pragma warning disable CS8500 | ||
#pragma warning disable CS8981 | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
|
||
namespace CsBindgen | ||
{ | ||
|
||
|
||
[StructLayout(LayoutKind.Sequential)] | ||
internal unsafe partial struct Vec3 | ||
{ | ||
public float x; | ||
public float y; | ||
public float z; | ||
} | ||
|
||
|
||
internal enum Foo : uint | ||
{ | ||
Bar = 1, | ||
Baz = 2, | ||
} | ||
|
||
|
||
} |