I meant exactly that... "within code" meaning anything in loop() or functions - I thought maybe the preprocessor #if structure could only be used in header of code.
so I can do something like this within setup, loop, or my own functions?
#ifndef DFPlayer.EQ()
//its not defined, so other player class is loaded
DFPlayer.setPlayMode(DFPlayer.SINGLE);
DFPlayer.setPrompt(false);
DFPlayer.switchFunction(DFPlayer.MUSIC);
sounds_sd = DFPlayer.getTotalFile();
#else
DFPlayer.EQ(DFPLAYER_EQ_ROCK);
sounds_sd = DFPlayer.readFileCounts();
#endif