Browse Source

Added file path property to code generators.

pull/769/head
Joao Matos 9 years ago
parent
commit
79683a6187
  1. 3
      src/Generator/Generators/CodeGenerator.cs

3
src/Generator/Generators/CodeGenerator.cs

@ -16,6 +16,9 @@ namespace CppSharp.Generators @@ -16,6 +16,9 @@ namespace CppSharp.Generators
public abstract string FileExtension { get; }
public virtual string FilePath =>
$"{TranslationUnit.FileNameWithoutExtension}.{FileExtension}";
protected CodeGenerator(BindingContext context, TranslationUnit unit)
: this(context, new List<TranslationUnit> { unit })
{

Loading…
Cancel
Save