[cairo] Re: Re: cairo c++ bindings

Mike Hearn mike at plan99.net
Fri Nov 25 06:14:04 PST 2005


On Thu, 24 Nov 2005 07:10:14 -0800, Carl Worth wrote:
> If binding to a language that supports exceptions it probably does
> make sense to call _get_status after each call and throw exceptions.

Sounds slow ... why can't Cairo have some on_error callback that is called
whenever the internal status code is changed to !success? That way, in a C
program it'd do nothing (except maybe you could set it to log the failing
call) and in a C++ binding it'd be hooked to throw an exception.

thanks -mike



More information about the cairo mailing list