[cairo] Conditionally include debug functions with ENABLE_DEBUG_FUNCS

BJörn Lindqvist bjourne at gmail.com
Thu Oct 18 14:13:51 PDT 2007


Hello,

Here is a patch that introduces a ENABLE_DEBUG_FUNCS macro define. Its
purpose is to allow for debug stuff to be conditionally included in
Cairo proper. Things that must be exposed for testing to work, but
that should not be included in the final and really public API.

An example is the cairo_boilerplate_xlib_surface_disable_render()
function. It is one of those functions that it is much easier to deal
with if it is inside Cairo rather than outside since it must mock
around with Cairo internals to work.

Other debug functions than cairo_xlib_surface_disable_render() can be
added in the future.

-- 
mvh Björn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-define-to-compile-debug-funcs.patch
Type: text/x-patch
Size: 6252 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20071018/2c4c78bd/attachment.bin 


More information about the cairo mailing list