ifdef conditionals in Arduino LOOP

I've just found a library for an Arduino project, and am looking over the code.

In the loop() function there are MANY #ifdef statements. Each one calls a function - which appears to be a way of providing a variable feature selection.

Will all these #ifdefs get processed at compile time so that only those that are defined will be in the code?
(I sure hope so or this will be one slow loop! ) :slight_smile:

=Alan R.

Will all these #ifdefs get processed at compile time so that only those that are defined will be in the code?

Yes

Thanks!