|
Re: Commenting out in EasyC?
EDIT: I'm not entirely postive that will work in EasyC, it's standard C so I think it will. Let me know if it does?
Instead of doing /* and */ do this
Old way:
Code:
/*
int myvar = 0;
Default();
Code();
DoStuff();
*/
Better way:
Code:
#if 0 // Will never be satisfied
int myvar = 0;
Default();
Code();
DoStuff();
#endif
Pre-processor directives won't be succeptible to comment blocks in the block you're trying to comment. Good luck!
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Last edited by Matt Krass : 20-02-2006 at 02:55.
Reason: Second thought
|