<% page_style = 'function' if node.is_constructor: page_style = 'constructor' elif node.is_method: page_style = 'method' %> % if node.parent is not None: % else: % endif ${formatter.format_type(node.retval.type) | x} ${node.symbol} % if node.is_method: ${node.parent.ctype} * self % endif % for arg in node.parameters: % if arg.type.ctype == '': % else: ${formatter.format_type(arg.type) | x} ${arg.argname} % endif % endfor ${node.symbol} ${node.retval.type.ctype} ${node.symbol} (\ % if node.is_method: ${node.parent.ctype} *self\ %endif % if len(node.parameters) == 0: % if not node.is_method: void\ %endif ); % elif node.is_method: , % endif % for arg, ix in zip(node.parameters, range(len(node.parameters))): % if ix != 0: ${' ' * (len(formatter.format_type(node.retval.type)) + len(node.symbol) + 3)}\ % endif % if arg.type.ctype == '': ...\ % else: ${formatter.format_type(arg.type) | x} ${arg.argname}\ % endif % if ix == len(node.parameters) - 1: ); % else: , %endif % endfor ${formatter.format(node.doc)} % if node.parameters or node.retval: % for arg, ix in zip(node.parameters, range(len(node.parameters))): % endfor % if node.retval: % endif

${arg.argname} :

${formatter.format(arg.doc)}

Returns :

${formatter.format(node.retval.doc)}
% endif % if node.version:

Since ${node.version}

% endif