4 #include <libvisual/lvconfig.h>
8 #define visual_return_if_fail(expr)
9 #define visual_return_val_if_fail(expr, val)
13 #include <libvisual/lv_log.h>
15 #ifdef VISUAL_PEDANTIC_CHECKS
17 #include <libvisual/lv_error.h>
19 #define visual_return_if_fail(expr) \
21 visual_log (VISUAL_LOG_CRITICAL, "Assertion '%s' failed", #expr); \
22 visual_error_raise (VISUAL_ERROR_FAILED_CHECK); \
25 #define visual_return_val_if_fail(expr, val) \
27 visual_log (VISUAL_LOG_CRITICAL, "Assertion '%s' failed", #expr); \
28 visual_error_raise (VISUAL_ERROR_FAILED_CHECK); \
38 #define visual_return_if_fail(expr) \
40 visual_log (VISUAL_LOG_WARNING, \
41 "Assertion `%s' failed", #expr); \
49 #define visual_return_val_if_fail(expr, val) \
51 visual_log (VISUAL_LOG_WARNING, \
52 "Assertion `%s' failed", #expr); \