]> git.imager.perl.org - imager.git/commitdiff
hide the i_push_errorf() prototype for IMAGER_NO_CONTEXT
authorTony Cook <tony@develop-help.com>
Mon, 6 Aug 2012 13:08:59 +0000 (23:08 +1000)
committerTony Cook <tony@develop-help.com>
Sat, 24 Nov 2012 03:59:24 +0000 (14:59 +1100)
since you end up using the i_get_context() instead of the local
dIMCTX* or pIMCTX context

imerror.h

index e4a73189fae5c2a0a2e79b14299e64a2099af8e8..11f55ded7e394e3519007fb0a805ab5dc77f48b9 100644 (file)
--- a/imerror.h
+++ b/imerror.h
@@ -19,7 +19,9 @@ extern int i_set_errors_fatal(int new_fatal);
 extern i_errmsg *i_errors(void);
 
 extern void im_push_error(pIMCTX, int code, char const *msg);
+#ifndef IMAGER_NO_CONTEXT
 extern void i_push_errorf(int code, char const *fmt, ...) I_FORMAT_ATTR(2, 3);
+#endif
 extern void im_push_errorf(pIMCTX, int code, char const *fmt, ...) I_FORMAT_ATTR(3, 4);
 extern void im_push_errorvf(im_context_t ctx, int code, char const *fmt, va_list);
 extern void im_clear_error(pIMCTX);