Lines Matching refs:cond
392 #define __BUG_WARN_MSG(cond, with_msg, ...) \
393 do { if (cond) { \
394 ErrorFSigSafe("BUG: triggered 'if (" #cond ")'\n"); \
401 #define BUG_WARN_MSG(cond, ...) \
402 __BUG_WARN_MSG(cond, 1, __VA_ARGS__)
404 #define BUG_WARN(cond) __BUG_WARN_MSG(cond, 0, NULL)
406 #define BUG_RETURN(cond) \
407 do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return; } } while(0)
409 #define BUG_RETURN_MSG(cond, ...) \
410 do { if (cond) { __BUG_WARN_MSG(cond, 1, __VA_ARGS__); return; } } while(0)
412 #define BUG_RETURN_VAL(cond, val) \
413 do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
415 #define BUG_RETURN_VAL_MSG(cond, val, ...) \
416 do { if (cond) { __BUG_WARN_MSG(cond, 1, __VA_ARGS__); return (val); } } while(0)