MCPcopy Create free account
hub / github.com/ElementsProject/elements / IS_OK

Function IS_OK

src/simplicity/include/simplicity/errorCodes.h:48–50  ·  view source on GitHub ↗

Check if no failure. */

Source from the content-addressed store, hash-verified

46
47/* Check if no failure. */
48static inline bool IS_OK(simplicity_err err) {
49 return SIMPLICITY_NO_ERROR == err;
50}
51
52static inline const char * SIMPLICITY_ERR_MSG(simplicity_err err) {
53 switch (err) {

Callers 13

test_hashBlockFunction · 0.85
test_programFunction · 0.85
test_elementsFunction · 0.85
exactBudget_testFunction · 0.85
decodeNodeFunction · 0.85
decodeDagFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_hashBlockFunction · 0.68
test_programFunction · 0.68
test_elementsFunction · 0.68
exactBudget_testFunction · 0.68