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

Method genEnum

scripts/cgenerator.py:525–535  ·  view source on GitHub ↗

Generate the C declaration for a constant (a single value). tags may specify their values in several ways, but are usually just integers.

(self, enuminfo, name, alias)

Source from the content-addressed store, hash-verified

523 self.appendSection(section, f"\n{body}")
524
525 def genEnum(self, enuminfo, name, alias):
526 """Generate the C declaration for a constant (a single <enum> value).
527
528 <enum> tags may specify their values in several ways, but are usually
529 just integers."""
530
531 OutputGenerator.genEnum(self, enuminfo, name, alias)
532
533 body = self.deprecationComment(enuminfo.elem)
534 body += self.buildConstantCDecl(enuminfo, name, alias)
535 self.appendSection('enum', body)
536
537 def genCmd(self, cmdinfo, name, alias):
538 "Command generation"

Callers

nothing calls this directly

Calls 3

appendSectionMethod · 0.95
deprecationCommentMethod · 0.80
buildConstantCDeclMethod · 0.80

Tested by

no test coverage detected