Closed j4m3s closed 2 years ago
The doc suggests adding an #ifdef PIO_UNIT_TESTING to hide non-test related code. This is the wrong way around... you need to wrap non-test related code with #ifndef not #ifdef so that it's only parsed when PIO_UNIT_TESTING is not underway.
#ifdef PIO_UNIT_TESTING
#ifndef
#ifdef
All committers have signed the CLA.
Thanks for the valuable PR! 🙏
The doc suggests adding an
#ifdef PIO_UNIT_TESTING
to hide non-test related code. This is the wrong way around... you need to wrap non-test related code with#ifndef
not#ifdef
so that it's only parsed when PIO_UNIT_TESTING is not underway.