[cairo] [PATCH 05/72] core: helper function for converting cairo_status_t to human-readable text (like strerror)

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Tue Dec 29 09:05:22 PST 2015


On 29.12.2015 17:08, Chris Wilson wrote:

>>  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()?

Yeah, didn't know it when I wrote that patch, and just forgot to
drop it yet.

OTOH, both functions cant decode the internal status codes yet,
perhaps we should change that.


--mtx

--
Enrico Weigelt,
metux IT consulting
+49-151-27565287


More information about the cairo mailing list