PlatformIO Community

List of auto crated preprocces macros

Hello
Where can i found a list of all auto created macros (I don’t known its correct name) like PIO_UNIT_TESTING that is used to hide non-test related source code as described here

Beyond that there’s only one macro that indicates “debug build” (__PLATFORMIO_BUILD_DEBUG__) and one that is deprecated (UNIT_TEST).

The Github search gives all occurences for macros added by PlatformIO.

Further “hidden” auto-added macros come from the compiler (e.g. __arm__ when compiling with arm-none-eabi-gcc etc)

1 Like