Re: [PATCH 05/72] core: helper function for converting cairo_status_t to human-readable text (like strerror)
Chris Wilson <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Dec 29, 2015 at 10:16:43AM +0100, Enrico Weigelt, metux IT consult wrote: > Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]> > --- > src/cairo-error.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > src/cairo.h | 2 ++ > 2 files changed, 54 insertions(+) > > diff --git a/src/cairo-error.c b/src/cairo-error.c > index 1b9bd76..0ea9864 100644 > --- a/src/cairo-error.c > +++ b/src/cairo-error.c > @@ -71,3 +71,55 @@ _cairo_error (cairo_status_t status) > } > > COMPILE_TIME_ASSERT ((int)CAIRO_INT_STATUS_LAST_STATUS == (int)CAIRO_STATUS_LAST_STATUS); > + > +const char* cairo_status_text(cairo_status_t status) May I introduce you to cairo_status_to_string()? -Chris -- Chris Wilson, Intel Open Source Technology Centre -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo