[cairo] error handling questions

Carl Worth cworth at cworth.org
Thu Jul 5 07:08:41 PDT 2007

On Thu, 05 Jul 2007 11:01:00 +0100, Bill Spitzak wrote:
> Depending on the error this could be pointers to string constants (this
> would be a requirement for out-of-memory), or a buffer allocated and
> belonging to the cairo_t. I would think some function would be used to
> retrieve the error:
> const char* cairo_error_string(cairo_t);

That's been there for a long time, (and it does return a pointer to a
string constant). See:

	const char *
	cairo_status_to_string (cairo_status_t status);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://cairographics.org/archives/cairo/attachments/20070705/f0d032d0/attachment.pgp 

More information about the cairo mailing list