-
👋 I'm not used to C/C++, so my question may be dumb In the below snippet, I don't understand what the exception is used for: MAGICK_NATIVE_EXPORT ssize_t MagickImage_ColormapSize_Get(const Image *instance, ExceptionInfo **exception)
{
(void) exception;
if (instance->colormap == (PixelInfo *) NULL)
return -1;
return (ssize_t) instance->colors;
} What I understand is that it's not used, but I'm not sure. Regards. |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Jan 27, 2024
Replies: 1 comment
-
This has to do with the fact that the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gounlaf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has to do with the fact that the
MagickImage_ColorSpace_Set
requiresexception
. The code generation can only set that exception for both theget
andset
. I will probably change the code generator in the future and maybe I can make this possible then but for now you need to pass it.