1
0

APIDump: Removed HOOK_MAX and HOOK_NUM_HOOKS from documentation.

They're not really hooks, just constants for the maximum.
This commit is contained in:
madmaxoft 2013-10-14 21:57:23 +02:00
parent 862397856d
commit e4bb796c6b

View File

@ -180,7 +180,12 @@ function DumpAPIHtml()
-- Extract hook constants:
for name, obj in pairs(cPluginManager) do
if (type(obj) == "number") and (name:match("HOOK_.*")) then
if (
(type(obj) == "number") and
name:match("HOOK_.*") and
(name ~= "HOOK_MAX") and
(name ~= "HOOK_NUM_HOOKS")
) then
table.insert(Hooks, { Name = name });
end
end