Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / src / cairo / CairoExceptionMacro.c
blob9a806893c4bffd7a1a28d8c7144a8196a83e7837
1 #define PHP_CAIRO_ERROR(status) \
2 if (status != CAIRO_STATUS_SUCCESS) { \
3 phpCairoCheckStatus(status); \
4 return; \
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)