third_party/cairo/src/cairo-region.c
static cairo_status_t
_cairo_region_set_error (cairo_region_t *region,
			 cairo_status_t status)
{
    if (status == CAIRO_STATUS_SUCCESS)
        return CAIRO_STATUS_SUCCESS;

    /* Don't overwrite an existing error. This preserves the first
     * error, which is the most significant. */
    _cairo_status_set_error (&region->status, status);

    return _cairo_error (status);
}
/**
 * _cairo_region_set_error:
 * @region: a region
 * @status: a status value indicating an error
 *
 * Atomically sets region->status to @status and calls _cairo_error;
 * Does nothing if status is %CAIRO_STATUS_SUCCESS or any of the internal
 * status values.
 *
 * All assignments of an error status to region->status should happen
 * through _cairo_region_set_error(). Note that due to the nature of
 * the atomic operation, it is not safe to call this function on the
 * nil objects.
 *
 * The purpose of this function is to allow the user to set a
 * breakpoint in _cairo_error() to generate a stack trace for when the
 * user causes cairo to detect an error.
 *
 * Return value: the error status.
 **/
@region: a region
@status: a status value indicating an error

Atomically sets region->status to @status and calls _cairo_error;
Does nothing if status is %CAIRO_STATUS_SUCCESS or any of the internal
status values.

All assignments of an error status to region->status should happen
through _cairo_region_set_error(). Note that due to the nature of
the atomic operation, it is not safe to call this function on the
nil objects.

The purpose of this function is to allow the user to set a
breakpoint in _cairo_error() to generate a stack trace for when the
user causes cairo to detect an error.

Return value: the error status.
@region : a region @status : a status value indicating an error Atomically sets region - > status to @status and calls _cairo_error ; Does nothing if status is %CAIRO_STATUS_SUCCESS or any of the internal status values . All assignments of an error status to region - > status should happen through _cairo_region_set_error () . Note that due to the nature of the atomic operation it is not safe to call this function on the nil objects . The purpose of this function is to allow the user to set a breakpoint in _cairo_error () to generate a stack trace for when the user causes cairo to detect an error . Return value : the error status .
static cairo_status_t
_cairo_region_set_error (cairo_region_t *region,
			 cairo_status_t status)
{
    if (status == CAIRO_STATUS_SUCCESS)
        return CAIRO_STATUS_SUCCESS;
    _cairo_status_set_error (&region->status, status);
    return _cairo_error (status);
}
static cairo_status_t _cairo_region_set_error ( cairo_region_t * region , cairo_status_t status ) { if ( status == CAIRO_STATUS_SUCCESS ) return CAIRO_STATUS_SUCCESS ; _cairo_status_set_error ( & region -> status , status ) ; return _cairo_error ( status ) ; }
_cairo_region_set_error:
 @region: a region
 @status: a status value indicating an error
_cairo_region_set_error : @region : a region @status : a status value indicating an error
/* Don't overwrite an existing error. This preserves the first
     * error, which is the most significant. */