Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Mar 19, 2024
1 parent 184ff4f commit 01fb011
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SharpMetal.Generator/HeaderInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public HeaderInfo(string filePath)
var rawName = line;
// These are static methods that aren't in a class
// Just so happens that one of these is incredibly important
line = StringUtils.FunctionSignautreCleanup(line);
line = StringUtils.FunctionSignatureCleanup(line);

var info = line.Split(" ", StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);
var returnType = "";
Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal.Generator/Instances/ClassInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static ClassInstance Build(string line, string namespacePrefix, StreamRea
}

var rawName = nextLine;
nextLine = StringUtils.FunctionSignautreCleanup(nextLine);
nextLine = StringUtils.FunctionSignatureCleanup(nextLine);

bool isStatic = false;

Expand Down
2 changes: 1 addition & 1 deletion src/SharpMetal.Generator/Utilities/StringUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static string CamelToPascale(string value)
return value;
}

public static string FunctionSignautreCleanup(string value)
public static string FunctionSignatureCleanup(string value)
{
value = value.Replace(";", "");
value = value.Replace("~", "Destroy");
Expand Down

0 comments on commit 01fb011

Please sign in to comment.