If “Advanced → Verbose Build” is executed in VSCode for a deployable environment, the following compile flags can be found, for example:
ARDUINO_ESP32_DEV, ARDUHAL_LOG_LEVEL = ARDUHAL_LOG_LEVEL_VERBOSE
These flags can be queried in a macro with #ifdef or #if.
If the same is done for the native environment, certain flags are not known in the macro such as PIO_UNIT_TESTING, UNIT_TEST, but the flags:
ARDUHAL_LOG_LEVEL = ARDUHAL_LOG_LEVEL_VERBOSE are known.
How can these flags for UinitTest be queried in a macro?
Many thanks for the help