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

3
src/Generator/Passes/CheckIgnoredDecls.cs

@ -90,7 +90,8 @@ namespace CppSharp.Passes
if (retClass == null) if (retClass == null)
{ {
function.ExplicityIgnored = true; 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); function.Name);
return false; return false;
} }

Loading…
Cancel
Save