summaryrefslogtreecommitdiff
path: root/src/main/gutenprint-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/gutenprint-internal.h')
-rw-r--r--src/main/gutenprint-internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/gutenprint-internal.h b/src/main/gutenprint-internal.h
index 65fd10c..0fa17b4 100644
--- a/src/main/gutenprint-internal.h
+++ b/src/main/gutenprint-internal.h
@@ -1,5 +1,5 @@
/*
- * "$Id: gutenprint-internal.h,v 1.3 2010/08/04 00:33:56 rlk Exp $"
+ * "$Id: gutenprint-internal.h,v 1.5 2011/06/12 00:31:51 rlk Exp $"
*
* Print plug-in header file for the GIMP.
*
@@ -53,6 +53,7 @@ extern "C" {
extern void stpi_init_paper(void);
extern void stpi_init_dither(void);
extern void stpi_init_printer(void);
+extern void stpi_vars_print_error(const stp_vars_t *v, const char *prefix);
#define BUFFER_FLAG_FLIP_X 0x1
#define BUFFER_FLAG_FLIP_Y 0x2
extern stp_image_t* stpi_buffer_image(stp_image_t* image, unsigned int flags);
@@ -68,6 +69,7 @@ do \
stp_erprintf("\nERROR: ***Gutenprint %s assertion %s failed!" \
" file %s, line %d. %s\n", PACKAGE_VERSION, \
#x, __FILE__, __LINE__, "Please report this bug!"); \
+ if ((v)) stpi_vars_print_error((v), "ERROR"); \
stp_abort(); \
} \
} while (0)
@@ -81,5 +83,5 @@ do \
#endif /* GUTENPRINT_INTERNAL_INTERNAL_H */
/*
- * End of "$Id: gutenprint-internal.h,v 1.3 2010/08/04 00:33:56 rlk Exp $".
+ * End of "$Id: gutenprint-internal.h,v 1.5 2011/06/12 00:31:51 rlk Exp $".
*/