mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 04:51:04 +00:00
* CppSpecWriter.cs: Added inclusion guards to gldefs++ header.
This commit is contained in:
parent
1ba7a853a4
commit
9d85ba0f98
|
@ -72,6 +72,10 @@ namespace Bind
|
||||||
|
|
||||||
using (BindStreamWriter sw = new BindStreamWriter(temp_header_file))
|
using (BindStreamWriter sw = new BindStreamWriter(temp_header_file))
|
||||||
{
|
{
|
||||||
|
sw.WriteLine("#ifndef GLDEFPP_H");
|
||||||
|
sw.WriteLine("#define GLDEFPP_H");
|
||||||
|
sw.WriteLine("#pragma once");
|
||||||
|
|
||||||
WriteLicense(sw);
|
WriteLicense(sw);
|
||||||
|
|
||||||
sw.WriteLine("namespace {0}", Settings.OutputNamespace);
|
sw.WriteLine("namespace {0}", Settings.OutputNamespace);
|
||||||
|
@ -89,6 +93,8 @@ namespace Bind
|
||||||
|
|
||||||
sw.Unindent();
|
sw.Unindent();
|
||||||
sw.WriteLine("}");
|
sw.WriteLine("}");
|
||||||
|
|
||||||
|
sw.WriteLine("#endif");
|
||||||
}
|
}
|
||||||
|
|
||||||
using (BindStreamWriter sw = new BindStreamWriter(temp_cpp_file))
|
using (BindStreamWriter sw = new BindStreamWriter(temp_cpp_file))
|
||||||
|
|
Loading…
Reference in a new issue