tags:

views:

97

answers:

2

Is there anyway to restrict by using pre-processing directives to prevent a project from compiling when both the Release and Debug symbols are defined?

Please let me know.

A: 

See here. According to this it works in VC++ as well.

Space_C0wb0y
A: 

Assuming C/C++:

#if defined (Debug) && defined (Release)
  #error Debug and Release are both defined !
#endif
Paul R