Team-OKC-Robotics / FRC-2023

The FRC team #2718 Team OKC Robotics code for the 2023 season
Other
2 stars 0 forks source link

Improve OKC_CALL/CHECK #28

Closed jkleiber closed 1 year ago

jkleiber commented 1 year ago

Summary The current implementation of OKC_CALL/CHECK could use a bit of an upgrade in terms of the print statement. Currently it only prints the checked/called item and not the macro wrapped around it. For example, if we have a pointer p which is nullptr OKC_CHECK would show: p != nullptr instead of the possibly more helpful OKC_CHECK(p != nullptr);. The goal of this ticket is to improve the checks so it's easier to see what's going on.

Work

Verification