mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-21 15:08:37 +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;
|
int indent_level = 0;
|
||||||
Regex splitLines = new Regex(System.Environment.NewLine, RegexOptions.Compiled);
|
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)
|
public BindStreamWriter(string file)
|
||||||
: base(file)
|
: base(file)
|
||||||
|
@ -41,7 +42,7 @@ namespace Bind
|
||||||
|
|
||||||
base.Write(value);
|
base.Write(value);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
public override void WriteLine(string value)
|
public override void WriteLine(string value)
|
||||||
{
|
{
|
||||||
for (int i = indent_level; i > 0; i--)
|
for (int i = indent_level; i > 0; i--)
|
||||||
|
@ -49,7 +50,7 @@ namespace Bind
|
||||||
|
|
||||||
base.WriteLine(value);
|
base.WriteLine(value);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
public void Write(Bind.Structures.Enum e)
|
public void Write(Bind.Structures.Enum e)
|
||||||
{
|
{
|
||||||
foreach (string s in splitLines.Split(e.ToString()))
|
foreach (string s in splitLines.Split(e.ToString()))
|
||||||
|
|
Loading…
Reference in a new issue