From: Tony Cook Date: Thu, 25 Oct 2012 03:43:29 +0000 (+1100) Subject: only define im_assert_fail() when assertions are enabled. X-Git-Tag: v0.93_02~18 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/81b6f49945e4d1676fcbdf7cd8974c84e0aa31d1 only define im_assert_fail() when assertions are enabled. --- diff --git a/error.c b/error.c index a782e3a0..03a271ca 100644 --- a/error.c +++ b/error.c @@ -301,11 +301,15 @@ int i_failed(int code, char const *msg) { #endif +#ifdef IM_ASSERT + /* =item im_assert_fail(file, line, message) Called when an im_assert() assertion fails. +Only available when Imager is built with assertions. + =cut */ @@ -316,6 +320,8 @@ im_assert_fail(char const *file, int line, char const *message) { abort(); } +#endif + /* =back