In all the examples I\'ve seen of the #if compiler directive, they use \"DEBUG\". Can I use \"RELEASE\" in the same way to exclude code that I don\'t want to run when compi
On my VS install (VS 2008) #if RELEASE does not work. However you could just use #if !DEBUG
#if RELEASE
#if !DEBUG
Example:
#if !DEBUG SendTediousEmail() #endif