preprocessing directives to prevent a project from release and debug symbols

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.

Answers


Assuming C/C++:

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

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


Need Your Help

required element content

xsd element

I'm trying to create xsd for an element like this:

How to turn off sortable rows in Yiibooster gridview

php jquery gridview yii yii-booster

Im pretty new to Yii with Yii-bootstrap and i cant figure out why my table is still sortable.