Set DEBUG enviroment variable in c

Viewed 49

I have a code (not programmed by me) in which I have some parts where I have something like that:

#if CORE_DEBUG
    ee_printf("State Bench: %d,%d,%d,%04x\n",seed1,seed2,step,crc);
#endif

My question is: what is the correct way to set up this environment variable?

EDIT: I am building the code with this Makefiles.

1 Answers

It's a compilation flag, like -DCORE_DEBUG.

In some build environments you can enable/disable these as part of your build profile.

Related