Click here to Skip to main content
15,898,752 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Experts
As question suggest anybody have idea how to implement false conditional of Conditional["DEBUG"]

may be something like this
Conditional["NOTDEBUG"]

I know it is possible with
C#
#if !DEBUG
...code here
#endif

but I need it with Conditional

Thank in Advance
Posted
Updated 10-Mar-10 1:26am
v3

1 solution

Khaniya wrote:
but I need it with Conditional


This makes absolutely zero sense. It is a non question. Checking the value of DEBUG with #if works on the same level that DEBUG is defined. In other words, the only way to do this is to add a method that returns a bool and use #if DEBUG to have it return true or false correctly. That is just wrapping the check, it does not change the nature of the check you need to make.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900