In each file it is defined of course. I'm not sure for a stock Contiki but for our testing build system (CFLAGS+=-DDEBUG=1) it does. As I mentioned it is not necessary, the important modifications follows the line you mention, but makes the compiler output cleaner (in a situation like ours).