Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

General • Re: How to report compile time values ?

$
0
0

Code:

#if TOTAL != <expected value>#error TOTAL has unexpected value#endif
Either done temporarily, or better in a unit-test file that's conditional on the particular target.

Statistics: Posted by Mark T — Sat Mar 16, 2024 7:44 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles