Skip to main content

pm_parser_warnings_first

Function pm_parser_warnings_first 

Source
pub unsafe extern "C" fn pm_parser_warnings_first(
    parser: *const pm_parser_t,
) -> *const pm_diagnostic_t
Expand description

Returns the first warning associated with the given parser. Iterate over the rest with pm_diagnostic_next.

@param parser the parser whose warnings we want to iterate over @returns the first warning, or NULL if there are no warnings