MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / printPageInfo

Function printPageInfo

scripts/reflib.py:171–188  ·  view source on GitHub ↗

Print out fields of a pageInfo struct - pi - pageInfo - file - indexed by pageInfo

(pi, file)

Source from the content-addressed store, hash-verified

169 logDiag(f'{desc}: {line}')
170
171def printPageInfo(pi, file):
172 """Print out fields of a pageInfo struct
173
174 - pi - pageInfo
175 - file - indexed by pageInfo"""
176 logDiag(f'TYPE: {pi.type}')
177 logDiag(f'NAME: {pi.name}')
178 logDiag(f'WARNING: {pi.Warning}')
179 logDiag(f'EXTRACT: {pi.extractPage}')
180 logDiag(f'EMBED: {pi.embed}')
181 logDiag(f'DESC: {pi.desc}')
182 printPageInfoField('BEGIN ', pi.begin, file)
183 printPageInfoField('INCLUDE ', pi.include, file)
184 printPageInfoField('PARAM ', pi.param, file)
185 printPageInfoField('BODY ', pi.body, file)
186 printPageInfoField('VALIDITY', pi.validity, file)
187 printPageInfoField('END ', pi.end, file)
188 logDiag(f'XREFS: "{pi.xrefs}"')
189
190def prevPara(file, line):
191 """Go back one paragraph from the specified line and return the line number

Callers 4

genRefFunction · 0.90
fixupRefsFunction · 0.85
insertTagsFunction · 0.85
replaceRefFunction · 0.85

Calls 2

logDiagFunction · 0.85
printPageInfoFieldFunction · 0.85

Tested by

no test coverage detected