Typo ;)
[phpCairo.git] / individual_files / phpCairoExceptionMacro.c
blob933ccbfbb1b2e929c7653dfc39b62174d6ac71aa
1 #define phpCAIRO_ERROR(status) \
2 if (status != CAIRO_STATUS_SUCCESS) { \
3 phpCairoCheckStatus(status); \
4 return; \
7 #define phpCAIRO_CONTEXT_ERROR(context) \
8 cairo_status_t status = cairo_status (context); \
9 phpCAIRO_ERROR(status)
11 #define phpCAIRO_PATTERN_ERROR(pattern) \
12 cairo_status_t status = cairo_pattern_status(pattern); \
13 phpCAIRO_ERROR(status)
15 #define phpCAIRO_SURFACE_ERROR(surface) \
16 cairo_status_t status = cairo_surface_status(surface); \
17 phpCAIRO_ERROR(status)
19 #define phpCAIRO_SCALEDFONT_ERROR(sc_font) \
20 cairo_status_t status = cairo_scaled_font_status(sc_font); \
21 phpCAIRO_ERROR(status)
23 #define phpCAIRO_FONTOPTIONS_ERROR(font_opt) \
24 cairo_status_t status = cairo_font_options_status(font_opt); \
25 phpCAIRO_ERROR(status)