0

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.

Mahesh
  • 1,651
  • 5
  • 26
  • 47

2 Answers2

0

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

Community
  • 1
  • 1
Björn Pollex
  • 75,346
  • 28
  • 201
  • 283
0

Assuming C/C++:

#if defined (Debug) && defined (Release)
  #error Debug and Release are both defined !
#endif
Paul R
  • 208,748
  • 37
  • 389
  • 560