mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
38 lines
899 B
ReStructuredText
38 lines
899 B
ReStructuredText
%{
|
|
--------------------------------------------------------------------------------
|
|
--
|
|
-- This file is part of the Doxyrest toolkit.
|
|
--
|
|
-- Doxyrest is distributed under the MIT license.
|
|
-- For details see accompanying license.txt file,
|
|
-- the public copy of which is also available at:
|
|
-- http://tibbo.com/downloads/archive/doxyrest/license.txt
|
|
--
|
|
--------------------------------------------------------------------------------
|
|
|
|
local argArray = table.pack(...)
|
|
local compound = argArray[1]
|
|
local sectionName = argArray[2]
|
|
}
|
|
-- $sectionName
|
|
|
|
%{
|
|
local isPrevMl = false
|
|
|
|
for i = 1, #compound.functionArray do
|
|
local item = compound.functionArray[i]
|
|
local decl = getFunctionDeclString(item, getItemNameTemplate(item), "\t")
|
|
local isMl = string.find(decl, "\n")
|
|
local extraNl = ""
|
|
|
|
if i > 1 and (isMl or isPrevMl) then
|
|
extraNl = "\n"
|
|
end
|
|
|
|
isPrevMl = isMl
|
|
}
|
|
$extraNl $decl
|
|
%{
|
|
end -- for
|
|
}
|