APIDump: Fixed dumping when APIDesc doesn't contain Constants section.
parent
57414e45b6
commit
c3ad5bbf91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue