Lines Matching refs:cond
391 #define __BUG_WARN_MSG(cond, with_msg, ...) \
392 do { if (cond) { \
393 ErrorFSigSafe("BUG: triggered 'if (" #cond ")'\n"); \
400 #define BUG_WARN_MSG(cond, ...) \
401 __BUG_WARN_MSG(cond, 1, __VA_ARGS__)
403 #define BUG_WARN(cond) __BUG_WARN_MSG(cond, 0, NULL)
405 #define BUG_RETURN(cond) \
406 do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return; } } while(0)
408 #define BUG_RETURN_MSG(cond, ...) \
409 do { if (cond) { __BUG_WARN_MSG(cond, 1, __VA_ARGS__); return; } } while(0)
411 #define BUG_RETURN_VAL(cond, val) \
412 do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
414 #define BUG_RETURN_VAL_MSG(cond, val, ...) \
415 do { if (cond) { __BUG_WARN_MSG(cond, 1, __VA_ARGS__); return (val); } } while(0)