Skip to content

Commit 269626f

Browse files
authored
Merge pull request #898 from aarongreig/aaron/generateFunctionPointerSpec
Include function pointer typedefs in generated spec documents.
2 parents 269f8bc + 97cdc41 commit 269626f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/templates/api_listing.mako

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ${title}
115115
## -------------------------
116116
<%isempty = True%>
117117
%for obj in objects:
118-
%if re.match(r"typedef", obj['type']):
118+
%if re.match(r"typedef", obj['type']) or re.match(r"fptr_typedef", obj['type']):
119119
%if isempty: # only display section title if there is content.
120120
%if needstitle:
121121
<%needstitle = False%>
@@ -245,7 +245,7 @@ ${th.make_type_name(n, tags, obj)}
245245
## -------------------------
246246
<%isempty = True%>
247247
%for obj in objects:
248-
%if re.match(r"typedef", obj['type']):
248+
%if re.match(r"typedef", obj['type']) or re.match(r"fptr_typedef", obj['type']):
249249
%if isempty: # only display section title if there is content.
250250
${title} Typedefs
251251
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)