Return type should be defined in the "type" attribute of the returns

element.
This commit is contained in:
Stefanos A. 2013-10-24 18:42:52 +02:00
parent 2378bef21e
commit 780d5e60c2

View file

@ -164,7 +164,9 @@ namespace CHeaderToXML
var api = Lookup(categories, cmd_name, "api");
var deprecated = Lookup(categories, cmd_name, "deprecated");
var returns = new XElement("returns", FunctionParameterType(command.Element("proto")));
var returns = new XElement(
"returns",
new XAttribute("type", FunctionParameterType(command.Element("proto"))));
foreach (var parameter in command.Elements("param"))
{