https://www.avrfreaks.net/forum/preprocessor-directives
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_3.html
Arduino esete:
http://www.deviceplus.com/how-tos/ardui ... -tutorial/
Pl. Processzorfüggő fordítás:
Kód: Egész kijelölése
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
//this will compile for Arduino UNO, Pro and older boards
int _sck = 13;
int _miso = 12;
int _mosi = 11;
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
//this will compile for Arduino Mega
int _sck = 52;
int _miso = 50;
int _mosi = 51;
#endif