MCPcopy Create free account
hub / github.com/ElementsProject/lightning / must_str

Function must_str

devtools/bolt12-cli.c:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static 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))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected