diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-05 09:21:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-05 10:34:33 +0100 |
commit | a04e3726648c62a1385b67cfc16a785a468e1d13 (patch) | |
tree | 884bf3049b41b4e07d61b141d583124ed334f811 /src/cairo-path-fixed-private.h | |
parent | 1645352bfb69cc6d43fcbf3c77b4da5693af322a (diff) |
[path] Add path watch debugging
Simple debug macro to print the path to stderr during construction.
Diffstat (limited to 'src/cairo-path-fixed-private.h')
-rw-r--r-- | src/cairo-path-fixed-private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo-path-fixed-private.h b/src/cairo-path-fixed-private.h index 5df18493..c7101e9f 100644 --- a/src/cairo-path-fixed-private.h +++ b/src/cairo-path-fixed-private.h @@ -39,6 +39,11 @@ #include "cairo-types-private.h" #include "cairo-compiler-private.h" +#define WATCH_PATH 0 +#if WATCH_PATH +#include <stdio.h> +#endif + enum cairo_path_op { CAIRO_PATH_OP_MOVE_TO = 0, CAIRO_PATH_OP_LINE_TO = 1, @@ -110,6 +115,10 @@ _cairo_path_fixed_iter_at_end (const cairo_path_fixed_iter_t *iter); static inline cairo_bool_t _cairo_path_fixed_is_region (cairo_path_fixed_t *path) { +#if WATCH_PATH + fprintf (stderr, "_cairo_path_fixed_is_region () = %s\n", + path->is_region ? "true" : "false"); +#endif return path->is_region; } |