Assume is the identity function.
Declared in <util/check.h>
#define Assume(val)
Should be used to run non-fatal checks. In debug builds it behaves like Assert()/assert() to notify developers and testers about non-fatal errors. In production it doesn't warn or log anything.
For fatal errors, use Assert().
For non-fatal errors in interactive sessions (e.g. RPC or command line interfaces), CHECK_NONFATAL() might be more appropriate.
| Name | Description |
|---|---|
| val | The expression that is assumed to be true. |