generator: ignore private structs completely

Don't spam the log with these messages for private structs
(and don't count this in the statistics), as there are too
many. These kind of types are just empty structs marked as
hidden and private.
This commit is contained in:
Stephan Sundermann 2013-08-12 11:17:09 +02:00 committed by Andrés G. Aragoneses
parent c3f7b8e32b
commit 5f271e04fa

View File

@ -32,6 +32,8 @@ namespace GtkSharp.Generation {
{
log.Member = Name;
if (!Ignored && !Hidden && CSType == "") {
if (Name == "Priv")
return false;
log.Warn ("field has unknown type: " + CType);
Statistics.ThrottledCount++;
return false;