This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Enum
pubconstCMD = enum(u32) {
/// Restart system using default command and mode.RESTART = 0x01234567,
/// Stop OS and give system control to ROM monitor, if any.HALT = 0xCDEF0123,
/// Ctrl-Alt-Del sequence causes RESTART command.CAD_ON = 0x89ABCDEF,
/// Ctrl-Alt-Del sequence sends SIGINT to init task.CAD_OFF = 0x00000000,
/// Stop OS and remove all power from system, if possible.POWER_OFF = 0x4321FEDC,
/// Restart system using given command string.RESTART2 = 0xA1B2C3D4,
/// Suspend system using software suspend if compiled in.SW_SUSPEND = 0xD000FCE2,
/// Restart system using a previously loaded Linux kernelKEXEC = 0x45584543,
_,
}
Commands accepted by the _reboot() system call.