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. 12
      src/AST/Module.cs

12
src/AST/Module.cs

@ -44,7 +44,11 @@ namespace CppSharp.AST
{ {
if (string.IsNullOrEmpty(inlinesLibraryName)) if (string.IsNullOrEmpty(inlinesLibraryName))
{ {
return string.Format("{0}-inlines", LibraryName); if (string.IsNullOrEmpty(OutputNamespace))
{
return string.Format("{0}-inlines", LibraryName);
}
return string.Format("{0}-inlines", OutputNamespace);
} }
return inlinesLibraryName; return inlinesLibraryName;
} }
@ -57,7 +61,11 @@ namespace CppSharp.AST
{ {
if (string.IsNullOrEmpty(templatesLibraryName)) if (string.IsNullOrEmpty(templatesLibraryName))
{ {
return string.Format("{0}-templates", LibraryName); if (string.IsNullOrEmpty(OutputNamespace))
{
return string.Format("{0}-templates", LibraryName);
}
return string.Format("{0}-templates", OutputNamespace);
} }
return templatesLibraryName; return templatesLibraryName;
} }

Loading…
Cancel
Save