mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 07:25:39 +00:00
Fixed public/internal mismatch in the generated bindings.
Disabled missing xml doc warnings in the generated bindings.
This commit is contained in:
parent
40446c637a
commit
2ed3306174
|
@ -466,7 +466,7 @@ namespace Bind.GL2
|
||||||
|
|
||||||
sw.Indent();
|
sw.Indent();
|
||||||
if ((Settings.Compatibility & Settings.Legacy.NestedEnums) != Settings.Legacy.None)
|
if ((Settings.Compatibility & Settings.Legacy.NestedEnums) != Settings.Legacy.None)
|
||||||
sw.WriteLine("public static partial class {0}", Settings.OutputClass);
|
sw.WriteLine("static partial class {0}", Settings.OutputClass);
|
||||||
else
|
else
|
||||||
sw.WriteLine("namespace {0}", Settings.EnumsNamespace);
|
sw.WriteLine("namespace {0}", Settings.EnumsNamespace);
|
||||||
|
|
||||||
|
@ -492,7 +492,6 @@ namespace Bind.GL2
|
||||||
|
|
||||||
sw.WriteLine("#pragma warning disable 0649");
|
sw.WriteLine("#pragma warning disable 0649");
|
||||||
WriteDelegates(sw, Bind.Structures.Delegate.Delegates);
|
WriteDelegates(sw, Bind.Structures.Delegate.Delegates);
|
||||||
sw.WriteLine("#pragma warning restore 0649");
|
|
||||||
|
|
||||||
sw.Unindent();
|
sw.Unindent();
|
||||||
sw.WriteLine("}");
|
sw.WriteLine("}");
|
||||||
|
@ -535,6 +534,9 @@ namespace Bind.GL2
|
||||||
{
|
{
|
||||||
Trace.WriteLine(String.Format("Writing delegates to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.DelegatesClass));
|
Trace.WriteLine(String.Format("Writing delegates to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.DelegatesClass));
|
||||||
|
|
||||||
|
sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute
|
||||||
|
sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments
|
||||||
|
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
sw.WriteLine("partial class {0}", Settings.OutputClass);
|
sw.WriteLine("partial class {0}", Settings.OutputClass);
|
||||||
sw.WriteLine("{");
|
sw.WriteLine("{");
|
||||||
|
@ -569,6 +571,9 @@ namespace Bind.GL2
|
||||||
{
|
{
|
||||||
Trace.WriteLine(String.Format("Writing imports to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.ImportsClass));
|
Trace.WriteLine(String.Format("Writing imports to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.ImportsClass));
|
||||||
|
|
||||||
|
sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute
|
||||||
|
sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments
|
||||||
|
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
sw.WriteLine("partial class {0}", Settings.OutputClass);
|
sw.WriteLine("partial class {0}", Settings.OutputClass);
|
||||||
sw.WriteLine("{");
|
sw.WriteLine("{");
|
||||||
|
@ -608,8 +613,11 @@ namespace Bind.GL2
|
||||||
{
|
{
|
||||||
Trace.WriteLine(String.Format("Writing wrappers to:\t{0}.{1}", Settings.OutputNamespace, Settings.OutputClass));
|
Trace.WriteLine(String.Format("Writing wrappers to:\t{0}.{1}", Settings.OutputNamespace, Settings.OutputClass));
|
||||||
|
|
||||||
|
sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute
|
||||||
|
sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments
|
||||||
|
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
sw.WriteLine("public static partial class {0}", Settings.OutputClass);
|
sw.WriteLine("static partial class {0}", Settings.OutputClass);
|
||||||
sw.WriteLine("{");
|
sw.WriteLine("{");
|
||||||
|
|
||||||
sw.Indent();
|
sw.Indent();
|
||||||
|
@ -674,6 +682,9 @@ namespace Bind.GL2
|
||||||
|
|
||||||
public void WriteEnums(BindStreamWriter sw, EnumCollection enums)
|
public void WriteEnums(BindStreamWriter sw, EnumCollection enums)
|
||||||
{
|
{
|
||||||
|
sw.WriteLine("#pragma warning disable 3019"); // CLSCompliant attribute
|
||||||
|
sw.WriteLine("#pragma warning disable 1591"); // Missing doc comments
|
||||||
|
|
||||||
if ((Settings.Compatibility & Settings.Legacy.NestedEnums) != Settings.Legacy.None)
|
if ((Settings.Compatibility & Settings.Legacy.NestedEnums) != Settings.Legacy.None)
|
||||||
Trace.WriteLine(String.Format("Writing enums to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.NestedEnumsClass));
|
Trace.WriteLine(String.Format("Writing enums to:\t{0}.{1}.{2}", Settings.OutputNamespace, Settings.OutputClass, Settings.NestedEnumsClass));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue