Assume is the identity function.

Synopsis

Declared in <util/check.h>

#define Assume(val)

Description

  • 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.

Parameters

Name

Description

val

The expression that is assumed to be true.

Created with MrDocs