IDL C#: Added params XML docs.
This commit is contained in:
parent
102b3d2b39
commit
63a4fe7750
File diff suppressed because it is too large
Load Diff
@ -286,6 +286,33 @@ function converter.funcs(func)
|
|||||||
yield("/// " .. line)
|
yield("/// " .. line)
|
||||||
end
|
end
|
||||||
yield("/// </summary>")
|
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
|
end
|
||||||
|
|
||||||
yield("[DllImport(DllName, EntryPoint=\"bgfx_" .. func.cname .. "\", CallingConvention = CallingConvention.Cdecl)]")
|
yield("[DllImport(DllName, EntryPoint=\"bgfx_" .. func.cname .. "\", CallingConvention = CallingConvention.Cdecl)]")
|
||||||
|
Loading…
Reference in New Issue
Block a user