Click here to Skip to main content
15,887,746 members
Articles / Programming Languages / Javascript

Super-Easy Code Block Toggling

Rate me:
Please Sign up or sign in to vote.
4.75/5 (4 votes)
15 Nov 2011CPOL 11.5K  
For debug use, you can do something like this:#ifdef DEBUG #define dprintf(...) printf(__VA_ARGS__)#else #define dprintf(...)#endif//Usage:dprintf("In debug mode.");//orchar *foo = "foo";dprintf("%d bar.",foo);// :)/*Edit reason :: *if you type...

Views

Daily Counts

License

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


Written By
Student
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions