Page MenuHomePhabricator

util: Add Assume() identity function
ClosedPublic

Authored by Fabien on Jun 15 2021, 06:44.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC12031e53db48: util: Add Assume() identity function
Summary
This is needed for #20138. Please refer to the added documentation for
motivation.

Backport of core#20255.

Depends on D9681.

Comes with a linter fix for an edge case where a macro defining
((void)(val)) would be linted as (()(val)).

Ref T1611.

Test Plan

With and without debug:

ninja all check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jun 15 2021, 06:44
Fabien planned changes to this revision.Jun 15 2021, 06:49
This revision is now accepted and ready to land.Jun 15 2021, 11:51