View Single Post
  #2   Spotlight this post!  
Unread 20-02-2006, 02:51
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
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