Page MenuHomePhabricator

util: Make Assume() usable as unary expression
ClosedPublic

Authored by PiRK on Jan 20 2022, 16:53.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC594794938f9e: util: Make Assume() usable as unary expression
Summary

Assume shouldn't behave different at the call site depending on build flags. Currently compilation fails if it is used as expression. Fix that by using the lambda approach from Assert() without the assert().

This is a backport of core#21317

Test Plan

ninja && ninja check

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Jan 20 2022, 16:53
Fabien requested changes to this revision.Jan 21 2022, 08:39
Fabien added a subscriber: Fabien.

Thats not the good PR

This revision now requires changes to proceed.Jan 21 2022, 08:39
PiRK requested review of this revision.Jan 21 2022, 09:05
PiRK edited the summary of this revision. (Show Details)

PR number fixed

This revision is now accepted and ready to land.Jan 21 2022, 09:45