Browse Source

Fix TranslationUnit.FileRelativePath for invalid units.

pull/1301/head
João Matos 5 years ago committed by João Matos
parent
commit
db3e0e3820
  1. 1
      src/AST/TranslationUnit.cs

1
src/AST/TranslationUnit.cs

@ -73,6 +73,7 @@ namespace CppSharp.AST @@ -73,6 +73,7 @@ namespace CppSharp.AST
{
get
{
if (!IsValid) return string.Empty;
return fileRelativePath ??
(fileRelativePath = Path.Combine(FileRelativeDirectory, FileName));
}

Loading…
Cancel
Save