APIDump: Added member-variable filtering.
This commit is contained in:
parent
9f8df5f702
commit
3f2813d6ff
|
@ -3610,6 +3610,11 @@ end
|
||||||
"WriteHtmlHook",
|
"WriteHtmlHook",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
IgnoreVariables =
|
||||||
|
{
|
||||||
|
"__.*__", -- tolua exports multiple inheritance this way
|
||||||
|
} ,
|
||||||
|
|
||||||
ExtraPages =
|
ExtraPages =
|
||||||
{
|
{
|
||||||
-- No sorting is provided for these, they will be output in the same order as defined here
|
-- No sorting is provided for these, they will be output in the same order as defined here
|
||||||
|
|
|
@ -555,6 +555,15 @@ function ReadDescriptions(a_API)
|
||||||
end
|
end
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Remove ignored functions:
|
||||||
|
local NewVariables = {};
|
||||||
|
for j, var in ipairs(cls.Variables) do
|
||||||
|
if (not(IsVariableIgnored(cls.Name .. "." .. var.Name))) then
|
||||||
|
table.insert(NewVariables, var);
|
||||||
|
end
|
||||||
|
end -- for j, var
|
||||||
|
cls.Variables = NewVariables;
|
||||||
|
|
||||||
-- Sort the member variables:
|
-- Sort the member variables:
|
||||||
table.sort(cls.Variables,
|
table.sort(cls.Variables,
|
||||||
function(v1, v2)
|
function(v1, v2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user