Browse Source

Improved the default names of libraries for inlines and template specialisations.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/696/head
Dimitar Dobrev 10 years ago
parent
commit
7d6f344324
  1. 8
      src/AST/Module.cs

8
src/AST/Module.cs

@ -43,9 +43,13 @@ namespace CppSharp.AST @@ -43,9 +43,13 @@ namespace CppSharp.AST
get
{
if (string.IsNullOrEmpty(inlinesLibraryName))
{
if (string.IsNullOrEmpty(OutputNamespace))
{
return string.Format("{0}-inlines", LibraryName);
}
return string.Format("{0}-inlines", OutputNamespace);
}
return inlinesLibraryName;
}
set { inlinesLibraryName = value; }
@ -56,9 +60,13 @@ namespace CppSharp.AST @@ -56,9 +60,13 @@ namespace CppSharp.AST
get
{
if (string.IsNullOrEmpty(templatesLibraryName))
{
if (string.IsNullOrEmpty(OutputNamespace))
{
return string.Format("{0}-templates", LibraryName);
}
return string.Format("{0}-templates", OutputNamespace);
}
return templatesLibraryName;
}
set { templatesLibraryName = value; }

Loading…
Cancel
Save