| 51 | } |
| 52 | |
| 53 | static bool must_str(bool expected, const char *complaint, const char *fieldname) |
| 54 | { |
| 55 | if (!expected) { |
| 56 | fprintf(stderr, "%s %s\n", complaint, fieldname); |
| 57 | well_formed = false; |
| 58 | return false; |
| 59 | } |
| 60 | return true; |
| 61 | } |
| 62 | |
| 63 | #define must_have(obj, field) \ |
| 64 | must_str((obj)->field != NULL, "Missing", stringify(field)) |
nothing calls this directly
no outgoing calls
no test coverage detected