C++ Preprocessor for Debug Statements

76 Views Asked by At

I have been going through some Boost-Fiber examples and the Boost-Fiber priority scheduler provided by Nat Goodspeed. In his code, he uses the character sequence //<- on the line before debugging code, and //-> on the line following.

I am wondering if there is some sort of C++ preprocessor that either removes this code, or leaves it in depending on the debugging mode.

I would like to use his scheduler, without the debug code, but I didn't want to remove it by hand if something already exists.

Thanks.

0

There are 0 best solutions below