Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

report the mismatched version numbers if the Imager API version doesn…

…'t match
  • Loading branch information...
commit af7d3ef8514601449fab50d1cb948c2a42d22417 1 parent d9cd69d
@tonycoz authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 imext.h
View
6 imext.h
@@ -17,8 +17,10 @@ extern im_ext_funcs *imager_function_ext_table;
imager_function_ext_table = INT2PTR(im_ext_funcs *, SvIV(get_sv(PERL_FUNCTION_TABLE_NAME, 1))); \
if (!imager_function_ext_table) \
croak("Imager API function table not found!"); \
- if (imager_function_ext_table->version != IMAGER_API_VERSION) \
- croak("Imager API version incorrect"); \
+ if (imager_function_ext_table->version != IMAGER_API_VERSION) { \
+ croak("Imager API version incorrect loaded %d vs expected %d", \
+ imager_function_ext_table->version, IMAGER_API_VERSION); \
+ } \
if (imager_function_ext_table->level < IMAGER_MIN_API_LEVEL) \
croak("API level %d below minimum of %d", imager_function_ext_table->level, IMAGER_MIN_API_LEVEL); \
} while (0)
Please sign in to comment.
Something went wrong with that request. Please try again.