1
0
Fork 0

APIDump: Do not dump the g_APIDesc and APIDump's functions.

This commit is contained in:
madmaxoft 2013-09-14 16:27:12 +02:00
parent d2c2d4ba52
commit 0b10f5f795
2 changed files with 13 additions and 4 deletions

View File

@ -1308,14 +1308,22 @@ A list of items regarding WebPlugins that have been documented
IgnoreFunctions =
{
"globals.assert",
"globals.collectgarbage",
"globals.xpcall",
"Globals.assert",
"Globals.collectgarbage",
"Globals.xpcall",
"%a+\.__%a+", -- AnyClass.__Anything
"%a+\.\.collector", -- AnyClass..collector
"%a+\.new", -- AnyClass.new
"%a+.new_local", -- AnyClass.new_local
"%a+.delete", -- AnyClass.delete
-- Functions global in the APIDump plugin:
"Initialize",
"DumpAPITxt",
"CreateAPITables",
"DumpAPIHtml",
"ReadDescriptions",
"WriteHtmlClass",
},
} ;

View File

@ -140,7 +140,8 @@ function CreateAPITables()
if (
(v ~= _G) and -- don't want the global namespace
(v ~= _G.packages) and -- don't want any packages
(v ~= _G[".get"])
(v ~= _G[".get"]) and
(v ~= g_APIDesc)
) then
if (type(v) == "table") then
table.insert(API, ParseClass(i, v));