Skip to content

Commit

Permalink
Do not generate empty constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Oct 19, 2024
1 parent ba210aa commit 4d81442
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/Bindgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private String GenerateStruct(CppClass cppStruct, out String output)
output += "\n";
}

var generateConstructor = true;
var generateConstructor = cppStruct.Fields.Count > 0;

// Generate fields
foreach (var field in cppStruct.Fields)
Expand Down
4 changes: 0 additions & 4 deletions src/Raylib.NET/Types/rAudioBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@ namespace Raylib.NET;
[StructLayout(LayoutKind.Sequential)]
public partial struct rAudioBuffer
{

public rAudioBuffer()
{
}
}
4 changes: 0 additions & 4 deletions src/Raylib.NET/Types/rAudioProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@ namespace Raylib.NET;
[StructLayout(LayoutKind.Sequential)]
public partial struct rAudioProcessor
{

public rAudioProcessor()
{
}
}

0 comments on commit 4d81442

Please sign in to comment.