Browse Source

Added a new method to declare the header sources.

pull/1/head
triton 13 years ago
parent
commit
0631c091f5
  1. 14
      src/Generator/LibraryHelpers.cs

14
src/Generator/LibraryHelpers.cs

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using Cxxi.Generators;
@ -31,6 +32,12 @@ namespace Cxxi @@ -31,6 +32,12 @@ namespace Cxxi
/// <param name="passes"></param>
void SetupPasses(PassBuilder passes);
/// <summary>
/// Setup your headers here.
/// </summary>
/// <param name="headers"></param>
void SetupHeaders(List<string> headers);
/// <summary>
/// Called to generate text at the start of the text template.
/// </summary>
@ -205,6 +212,13 @@ namespace Cxxi @@ -205,6 +212,13 @@ namespace Cxxi
@class.ExplicityIgnored = true;
}
public void SetClassAsOpaque(string name)
{
var @class = FindClass(name);
if (@class != null)
@class.IsOpaque = true;
}
#endregion
#region Function Helpers

Loading…
Cancel
Save