Identifying Due in Libraries

Hello, i know it is an old post anyway could someone say me where these define flag like avr_atmega328p or ARDUINO_AVR_UNO are set?

Sometimes i found them in pins_arduino but not everytime