Browse Source

Fixed the names of libraries with inlines and templates when the output name-space is empty.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/661/head
Dimitar Dobrev 9 years ago
parent
commit
0db035f873
  1. 6
      src/AST/Module.cs

6
src/AST/Module.cs

@ -4,7 +4,7 @@ namespace CppSharp.AST @@ -4,7 +4,7 @@ namespace CppSharp.AST
{
public class Module
{
public static Module SystemModule = new Module { OutputNamespace = string.Empty, LibraryName = "Std" };
public static readonly Module SystemModule = new Module { OutputNamespace = string.Empty, LibraryName = "Std" };
public Module()
{
@ -46,7 +46,7 @@ namespace CppSharp.AST @@ -46,7 +46,7 @@ namespace CppSharp.AST
{
if (string.IsNullOrEmpty(inlinesLibraryName))
{
return string.Format("{0}-inlines", OutputNamespace);
return string.Format("{0}-inlines", LibraryName);
}
return inlinesLibraryName;
}
@ -59,7 +59,7 @@ namespace CppSharp.AST @@ -59,7 +59,7 @@ namespace CppSharp.AST
{
if (string.IsNullOrEmpty(templatesLibraryName))
{
return string.Format("{0}-templates", OutputNamespace);
return string.Format("{0}-templates", LibraryName);
}
return templatesLibraryName;
}

Loading…
Cancel
Save