MCPcopy Create free account
hub / github.com/asmuth/clip / ReturnCode

Class ReturnCode

src/return_code.h:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32struct ReturnCode {
33 ReturnCode() : code(OK) {}
34 ReturnCode(Status c) : code(c) {}
35 ReturnCode(Status c, const std::string& m) : code(c), message(m) {}
36
37 operator bool() const { return code == OK; }
38
39 Status code;
40 std::string message;
41 std::list<const Expr*> trace;
42};
43
44inline ReturnCode error(
45 const Status code,

Callers 2

errorFunction · 0.85
errorfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected