equal
deleted
inserted
replaced
1142 } |
1142 } |
1143 |
1143 |
1144 #define check_with_errno(check_type, cond, msg) \ |
1144 #define check_with_errno(check_type, cond, msg) \ |
1145 do { \ |
1145 do { \ |
1146 int err = errno; \ |
1146 int err = errno; \ |
1147 check_type(cond, "%s; error='%s' (errno=%d)", msg, strerror(err), err); \ |
1147 check_type(cond, "%s; error='%s' (errno=%s)", msg, os::strerror(err), \ |
|
1148 os::errno_name(err)); \ |
1148 } while (false) |
1149 } while (false) |
1149 |
1150 |
1150 #define assert_with_errno(cond, msg) check_with_errno(assert, cond, msg) |
1151 #define assert_with_errno(cond, msg) check_with_errno(assert, cond, msg) |
1151 #define guarantee_with_errno(cond, msg) check_with_errno(guarantee, cond, msg) |
1152 #define guarantee_with_errno(cond, msg) check_with_errno(guarantee, cond, msg) |
1152 |
1153 |