IDL C#: Added params XML docs.

This commit is contained in:
Бранимир Караџић 2019-07-08 07:51:39 -07:00
parent 102b3d2b39
commit 63a4fe7750
2 changed files with 944 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -286,6 +286,33 @@ function converter.funcs(func)
yield("/// " .. line)
end
yield("/// </summary>")
yield("///")
local hasParams = false
for _, arg in ipairs(func.args) do
if arg.comment ~= nil then
local comment = ""
if (type(arg.comment) == "table") then
comment = table.concat(arg.comment, " ")
else
comment = arg.comment
end
yield("/// <param name=\""
.. arg.name
.. "\">"
.. comment
.. "</param>"
)
hasParams = true
end
end
if hasParams then
yield("///")
end
end
yield("[DllImport(DllName, EntryPoint=\"bgfx_" .. func.cname .. "\", CallingConvention = CallingConvention.Cdecl)]")