forked from Imagick/imagick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php_imagick_macros.h
42 lines (36 loc) · 1.96 KB
/
php_imagick_macros.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
+----------------------------------------------------------------------+
| PHP Version 5 / Imagick |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2013 Mikko Koppanen, Scott MacVicar |
| Imagemagick (c) ImageMagick Studio LLC |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Mikko Kopppanen <[email protected]> |
| Scott MacVicar <[email protected]> |
+----------------------------------------------------------------------+
*/
#ifndef PHP_IMAGICK_MACROS_H
# define PHP_IMAGICK_MACROS_H
#define IMAGICK_FREE_MAGICK_MEMORY(value) \
do { \
if (value) { \
MagickRelinquishMemory(value); \
value = NULL; \
} \
} while (0)
#if !defined(E_DEPRECATED)
# define E_DEPRECATED E_STRICT
#endif
#define IMAGICK_METHOD_DEPRECATED(class_name, method_name) \
php_error(E_DEPRECATED, "%s::%s method is deprecated and it's use should be avoided", class_name, method_name);
#define IMAGICK_METHOD_DEPRECATED_USE_INSTEAD(class_name, method_name, new_class, new_method) \
php_error(E_DEPRECATED, "%s::%s is deprecated. %s::%s should be used instead", class_name, method_name, new_class, new_method);
#endif /* PHP_IMAGICK_MACROS_H */