diff options
author | madmaxoft <github@xoft.cz> | 2013-09-14 16:27:12 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-14 16:27:12 +0200 |
commit | 0b10f5f79523686a61ccd42deb0e008004565a82 (patch) | |
tree | fb274de5b4eaf2318b09ecfbe0a1e274725eed49 /MCServer/Plugins | |
parent | APIDump: Moved sorting after the renaming. (diff) | |
download | cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.tar cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.tar.gz cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.tar.bz2 cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.tar.lz cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.tar.xz cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.tar.zst cuberite-0b10f5f79523686a61ccd42deb0e008004565a82.zip |
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 14 | ||||
-rw-r--r-- | MCServer/Plugins/APIDump/main.lua | 3 |
2 files changed, 13 insertions, 4 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 1ee9e9a8d..7e033f2af 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -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", }, } ; diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua index 0c9d683fb..35b99eb8b 100644 --- a/MCServer/Plugins/APIDump/main.lua +++ b/MCServer/Plugins/APIDump/main.lua @@ -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)); |