0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitWatch > GetPPException; / ThrowImageException;

Last updated at Posted at 2015-06-27

上記のコミットを見ていく中で以下のコードを見つけた。

+void Magick::Image::cdl(const std::string &cdl_)
+{
+  modifyImage();
+  GetPPException;
+  (void) ColorDecisionListImage(image(),cdl_.c_str(),exceptionInfo);
+  ThrowImageException;
+}
+

GetPPException; と ThrowImageException; が気になった。

http://code.metager.de/source/xref/ImageMagick/Magick%2B%2B/lib/Functions.cpp
にそれぞれdefineされていた、と思ったけど、ThrowImageExceptionの定義は別のとこらしい。

19 #define GetPPException \
20   ExceptionInfo \
21     exceptionInfo; \
22   GetExceptionInfo(&exceptionInfo)
23 #define ThrowPPException \
24   throwException(exceptionInfo); \
25   (void) DestroyExceptionInfo(&exceptionInfo)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?