APIDump: Fixed dumping when APIDesc doesn't contain Constants section.

master
madmaxoft 2013-09-14 23:21:10 +02:00
parent 57414e45b6
commit c3ad5bbf91
1 changed files with 14 additions and 10 deletions

View File

@ -265,17 +265,21 @@ function DumpAPIHtml()
-- The whole class is not exported
f:write("class\t" .. clsname .. "\n");
else
if (cls.Functions ~= nil) then
for fnname, fnapi in pairs(cls.Functions) do
if not(fnapi.IsExported) then
f:write("func\t" .. clsname .. "." .. fnname .. "\n");
end
end -- for j, fn - cls.Functions[]
end
if (cls.Constants ~= nil) then
for cnname, cnapi in pairs(cls.Constants) do
if not(cnapi.IsExported) then
f:write("const\t" .. clsname .. "." .. cnname .. "\n");
end
end -- for j, fn - cls.Functions[]
end
end
end -- for i, cls - g_APIDesc.Classes[]
f:close();
end