1 #define PHP_CAIRO_ERROR(status) \
2 if (status != CAIRO_STATUS_SUCCESS) { \
3 phpCairoCheckStatus(status); \
7 #define PHP_CAIRO_CONTEXT_ERROR(context) \
8 cairo_status_t status = cairo_status (context); \
9 PHP_CAIRO_ERROR(status)
11 #define PHP_CAIRO_PATTERN_ERROR(pattern) \
12 cairo_status_t status = cairo_pattern_status(pattern); \
13 PHP_CAIRO_ERROR(status)
15 #define PHP_CAIRO_SURFACE_ERROR(surface) \
16 cairo_status_t status = cairo_surface_status(surface); \
17 PHP_CAIRO_ERROR(status)
19 #define PHP_CAIRO_SCALEDFONT_ERROR(sc_font) \
20 cairo_status_t status = cairo_scaled_font_status(sc_font); \
21 PHP_CAIRO_ERROR(status)
23 #define PHP_CAIRO_FONTOPTIONS_ERROR(font_opt) \
24 cairo_status_t status = cairo_font_options_status(font_opt); \
25 PHP_CAIRO_ERROR(status)