![]() |
Commenting out in EasyC?
Anyone know if putting in two User Code blocks with "/*" and "*/" (sans quotes) will work to comment out the blocks in-between?
I want to comment out large chunks of code including conditions (if, while, etc.) and without having to click on every block. Edit: Oops!:o I forgot there was a separate EasyC forum. Mods, wanna move this? Sorry. |
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:
/*Code:
#if 0 // Will never be satisfied |
Re: Commenting out in EasyC?
Aha - good idea!
if (0) { I would have thought of that. } Thanks edit: Is there no way then to comment out (or otherwise render irrelevant) one "elseif" from the middle of a string of them? |
Re: Commenting out in EasyC?
A very easy way to comment out blocks is to simply right click them, then hit "comment out block". From my experience, this does not work with entire, long statements such as an if, else, for etc., but it will work with individual blocks and user functions.
|
Re: Commenting out in EasyC?
Thanks - I'd gotten that part, but as you noted, it doesn't work on conditions, and you can't comment out multiple blocks in one fell swoop.
|
Re: Commenting out in EasyC?
Oops!
I just realized I put this in the wrong forum - sorry, mods. Could the EasyC forum (and its subforums, natch) be itself made a subforum of the programming forum. That would seem to make more sense; I know I would have found it that way. |
Re: Commenting out in EasyC?
*/ and /*
works very well in the User Code Block |
Re: Commenting out in EasyC?
Oh good - thanks.
|
| All times are GMT -5. The time now is 01:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi