< prev index next >

src/os/posix/vm/os_posix.cpp

Print this page

        

*** 1028,1038 **** } #define check_with_errno(check_type, cond, msg) \ do { \ int err = errno; \ ! check_type(cond, err_msg("%s; error='%s' (errno=%d)", msg, strerror(err), err)); \ } while (false) #define assert_with_errno(cond, msg) check_with_errno(assert, cond, msg) #define guarantee_with_errno(cond, msg) check_with_errno(guarantee, cond, msg) --- 1028,1038 ---- } #define check_with_errno(check_type, cond, msg) \ do { \ int err = errno; \ ! check_type(cond, "%s; error='%s' (errno=%d)", msg, strerror(err), err); \ } while (false) #define assert_with_errno(cond, msg) check_with_errno(assert, cond, msg) #define guarantee_with_errno(cond, msg) check_with_errno(guarantee, cond, msg)
< prev index next >