Skip to main content

pm_parser_errors_first

Function pm_parser_errors_first 

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

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

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