mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 23:55:27 +00:00
* BindStreamWriter.cs: Committed Jonathan's formatting patch for the
generated bindings.
This commit is contained in:
parent
5a0357ee06
commit
b6900f4d7a
|
@ -17,6 +17,7 @@ namespace Bind
|
|||
{
|
||||
int indent_level = 0;
|
||||
Regex splitLines = new Regex(System.Environment.NewLine, RegexOptions.Compiled);
|
||||
//Regex splitLines = new Regex("(\r\n|\n\r|\n|\r)", RegexOptions.Compiled);
|
||||
|
||||
public BindStreamWriter(string file)
|
||||
: base(file)
|
||||
|
@ -41,7 +42,7 @@ namespace Bind
|
|||
|
||||
base.Write(value);
|
||||
}
|
||||
|
||||
/*
|
||||
public override void WriteLine(string value)
|
||||
{
|
||||
for (int i = indent_level; i > 0; i--)
|
||||
|
@ -49,7 +50,7 @@ namespace Bind
|
|||
|
||||
base.WriteLine(value);
|
||||
}
|
||||
|
||||
*/
|
||||
public void Write(Bind.Structures.Enum e)
|
||||
{
|
||||
foreach (string s in splitLines.Split(e.ToString()))
|
||||
|
|
Loading…
Reference in a new issue