pub unsafe fn yaml_parser_set_composer_error(
parser: *mut YamlParserT,
problem: *const c_char,
problem_mark: YamlMarkT,
) -> SuccessExpand description
Sets the error type to YamlComposerError and stores the problem and its mark.
§Parameters
parser: A mutable pointer to theYamlParserTstruct.problem: A pointer to a constant C string representing the problem.problem_mark: AYamlMarkTstruct representing the mark where the problem occurred.
§Return
Returns FAIL to indicate an error.
§Safety
parsermust be a valid, non-null pointer to a properly initializedYamlParserTstruct.problemmust be a valid, non-null pointer to a constant C string.problem_markmust be a validYamlMarkTstruct.- The
YamlParserTstruct must be properly aligned and have the expected memory layout. - The
problemstring must be null-terminated. - The
problem_markstruct must be properly initialized. - The caller must handle the error and clean up any resources.