[so] [Tech Q] Print debugging

Adrian Scoica adrian.scoica at gmail.com
Sun Mar 6 17:18:42 EET 2011


> #ifdef _DEBUG
> #define LOG(a) (std::cerr << (a) << "\n")
> #else
> #define while(0)
> #endif
>

Aici am facut o greseala. Vroiam sa zic de fapt tot:

#define LOG(a) while(0)


More information about the so mailing list