I used to use it a lot, but I've not coded in C++ in some time, kinda got used to the syntax from C# now. I remember using a directive that would process a certain code block if a situation was met, such as "Run this if in Debug, otherwise run this block". I currently use the
CODE
#if DEBUG
...
#else
...
#endif
directive, but I want to bypass the #else part, and just not run a part of code unless it's in release mode. I know that this was achieved by using the #ifndebug directive previously, or something similar. I tried #if !DEBUG, but that wasn't the right syntax. I tried doing a quick search to no avail, and wanted to know if anyone else was using it in their code and happened to have the syntax handy.
This post has been edited by tody4me: 1 Jul, 2008 - 01:12 PM