aboutsummaryrefslogtreecommitdiff
path: root/src/util/check.h
AgeCommit message (Collapse)Author
2021-03-04util: Make Assume() usable as unary expressionMarcoFalke
2020-12-31scripted-diff: Bump copyright headersMarcoFalke
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
2020-11-24util: Remove probably misleading TODOMarcoFalke
The TODO has been added by me, but I don't remember how to solve it. The current code works fine, so just remove the TODO.
2020-11-24util: Add Assume() identity functionMarcoFalke
2020-11-24util: Allow Assert(...) to be used in all contextspracticalswift
Fixes the compile error when used inside operator[]: ./chain.h:404:23: error: C++11 only allows consecutive left square brackets when introducing an attribute return (*this)[Assert(pindex)->nHeight] == pindex; ^
2020-07-11util: Make Assert work with any valueMarcoFalke
2020-06-15util: Add Assert identity functionMarcoFalke
The utility is primarily useful to dereference pointer types, which are known to be not null at that time. For example, the ArgsManager is known to exist when the wallets are started. Instead of silently relying on that assumption, Assert can be used to abort the program and avoid UB should the assumption ever be violated.
2020-06-14move-only: Move NDEBUG compile time check to util/checkMarcoFalke
2020-05-13Add util::Ref class as temporary alternative for c++17 std::anyRussell Yanofsky
This commit does not change behavior
2019-10-18util: Add CHECK_NONFATAL and use it in src/rpcMarcoFalke