Added ldoc comments for all lua modules and generated docs in documentation index.html
This commit is contained in:
documentation
config.ld
doc
index.htmlldoc.css
headers_template.htmlmodules
add_child_org_consent.htmlchange_modules.htmlconsent.htmljoin_org.htmljoin_org_consent.htmljoin_org_consent.lua.htmlleave_org.htmlmessage_org.htmlmodpol.interactions.htmlmodpol.orgs.base.htmlmodpol.orgs.process.htmlmodpol.util.misc.htmlmodpol_core.modules.join_org_consent.htmlmodpol_core.modules.remove_org_consent.htmlmodpol_minetest.api.htmlmodule_template.htmlpriv_to_org.htmlremove_child_consent.htmlremove_member_consent.htmlremove_org.htmlremove_org_consent.htmlrename_org_consent.html
modpol_core
modules
add_child_org_consent.luachange_modules.luaconsent.luajoin_org.luajoin_org_consent.lualeave_org.luamessage_org.luaremove_child_consent.luaremove_member_consent.luaremove_org.luaremove_org_consent.luarename_org_consent.luatemplate.lua
util
modpol_minetest/modules
@@ -1,7 +1,12 @@
|
||||
--- Miscellaneous functions
|
||||
-- @module modpol.util.misc
|
||||
|
||||
modpol.util = {}
|
||||
|
||||
--- @function modpol.copy_table
|
||||
-- Returns a copy of the table inputted
|
||||
--- Returns a copy of the table inputted
|
||||
-- @function modpol.util.copy_table
|
||||
-- @param t table to copy
|
||||
-- @return copy of table
|
||||
function modpol.util.copy_table(t)
|
||||
local t2 = {}
|
||||
for k,v in pairs(t) do
|
||||
@@ -10,8 +15,10 @@ function modpol.util.copy_table(t)
|
||||
return t2
|
||||
end
|
||||
|
||||
--- @function modpol.copy_table
|
||||
-- Returns the number of elements in a pairs table
|
||||
--- Returns the number of elements in a pairs table
|
||||
-- @function modpol.util.num_pairs
|
||||
-- @param t pairs table
|
||||
-- @return number of elements in pairs table
|
||||
function modpol.util.num_pairs(t)
|
||||
local i = 0
|
||||
for k,v in pairs(t) do
|
||||
|
Reference in New Issue
Block a user