Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 109,157 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,025 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Coding Directives

 
Reply to this topicStart new topic

Coding Directives, Yes, I know, an old C++ Habbit, but still

tody4me
post 1 Jul, 2008 - 01:12 PM
Post #1


only Jenny Craig makes thin clients...

Group Icon
Joined: 12 Apr, 2006
Posts: 995



Thanked 2 times

Dream Kudos: 100
My Contributions


I used to use it a lot, but I've not coded in C++ in some time, kinda got used to the syntax from C# now. I remember using a directive that would process a certain code block if a situation was met, such as "Run this if in Debug, otherwise run this block". I currently use the
CODE

#if DEBUG
...
#else
...
#endif

directive, but I want to bypass the #else part, and just not run a part of code unless it's in release mode. I know that this was achieved by using the #ifndebug directive previously, or something similar. I tried #if !DEBUG, but that wasn't the right syntax. I tried doing a quick search to no avail, and wanted to know if anyone else was using it in their code and happened to have the syntax handy.

This post has been edited by tody4me: 1 Jul, 2008 - 01:12 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/5/08 05:36PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month