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)
| 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" |
nothing calls this directly
no test coverage detected