Replace `check_closed_event` macro with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 20:17:16 +0000 (20:17 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:30:30 +0000 (18:30 +0000)
commit226c43cc931c8a4c141567606e72712a5c6f378b
treed961101b1100bc51c72ca9a525c3536c5a6832a0
parent8bf5eda6bbb030542ac82df05c7483033ca3abc6
Replace `check_closed_event` macro with a function

The `check_closed_event!()` macro has no reason to be a macro so
here we move its logic to a function and leave the macro in place
to avoid touching every line of code in the tests.

This reduces the `--profile=test --lib` `Zpretty=expanded` code
size from 309,522 LoC to 301,915 LoC.
lightning/src/ln/functional_test_utils.rs