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 Function
Opens a protocol with a structure as the loaded image for a UEFI application
If flag is .test_protocol, then the only valid return value is null, and Status.unsupported is returned. Otherwise, if _openProtocol returns Status.unsupported, then null is returned.
Opens a protocol with a structure as the loaded image for a UEFI application
If
flagis.test_protocol, then the only valid return value isnull, andStatus.unsupportedis returned. Otherwise, if_openProtocolreturnsStatus.unsupported, thennullis returned.