summaryrefslogtreecommitdiff
path: root/src/cairo-tag-stack-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2021-07-26 18:45:31 +0930
committerAdrian Johnson <ajohnson@redneon.com>2021-07-29 06:00:37 +0930
commit24616585ecb83ead34b4662e8a07957da5299c28 (patch)
tree7a69a0590b310e227f89f20a89ed6a9ef1d215ca /src/cairo-tag-stack-private.h
parent4e3f6bf0c2eb4ff5065bb18fb846019d4fef597f (diff)
downloadcairo-24616585ecb83ead34b4662e8a07957da5299c28.tar.gz
Print tag error details when CAIRO_DEBUG_TAG is defined
Add a _cairo_tag_error(fmt, ...) function that is used liked _cairo_error() but allows an error message to be specified. When CAIRO_DEBUG_TAG is defined the error is printed.
Diffstat (limited to 'src/cairo-tag-stack-private.h')
-rw-r--r--src/cairo-tag-stack-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-tag-stack-private.h b/src/cairo-tag-stack-private.h
index 4af2a85de..fbb2c0e25 100644
--- a/src/cairo-tag-stack-private.h
+++ b/src/cairo-tag-stack-private.h
@@ -104,4 +104,7 @@ _cairo_tag_stack_free_elem (cairo_tag_stack_elem_t *elem);
cairo_private cairo_tag_type_t
_cairo_tag_get_type (const char *name);
+cairo_private cairo_status_t
+_cairo_tag_error (const char *fmt, ...) CAIRO_PRINTF_FORMAT (1, 2);
+
#endif /* CAIRO_TAG_STACK_PRIVATE_H */