Browse Source

Some reordering of code and improved logging.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/57/head
Dimitar Dobrev 12 years ago
parent
commit
74ec730811
  1. 2
      src/Generator/Driver.cs
  2. 3
      src/Generator/Passes/CheckIgnoredDecls.cs

2
src/Generator/Driver.cs

@ -261,7 +261,6 @@ namespace CppSharp @@ -261,7 +261,6 @@ namespace CppSharp
public string OutputNamespace;
public string OutputDir;
public string LibraryName;
private string inlinesLibraryName;
public bool OutputInteropIncludes;
public bool GenerateLibraryNamespace;
public bool GenerateFunctionTemplates;
@ -275,6 +274,7 @@ namespace CppSharp @@ -275,6 +274,7 @@ namespace CppSharp
public int MaxIndent;
public string CommentPrefix;
private string inlinesLibraryName;
public string InlinesLibraryName
{
get

3
src/Generator/Passes/CheckIgnoredDecls.cs

@ -90,7 +90,8 @@ namespace CppSharp.Passes @@ -90,7 +90,8 @@ namespace CppSharp.Passes
if (retClass == null)
{
function.ExplicityIgnored = true;
Console.WriteLine("Function '{0}' was ignored due to an indirect return param not of a tag type",
Driver.Diagnostics.EmitWarning(
"Function '{0}' was ignored due to an indirect return param not of a tag type",
function.Name);
return false;
}

Loading…
Cancel
Save