Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 #endif appears at end of block - not on new line
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

julianwb
New Member

7 Posts

Posted - Mar 19 2004 :  06:41:09 AM  Show Profile
When using #ifdef..#endif the #endif is written at the exact end of the selection. It would be more useful if a newline was inserted for the #endif so # is at start of line.

jpizzi
Tomato Guru

USA
642 Posts

Posted - Mar 19 2004 :  5:23:57 PM  Show Profile
Sure is. But, you can change that by editing the code template for #ifdef selection.

WTS: since a preprocessor directive must be the first thing on a line, this is a bug.

Joe Pizzi
Go to Top of Page

julianwb
New Member

7 Posts

Posted - Mar 22 2004 :  10:42:49 AM  Show Profile
What code template? I am referring to the "surround selection" command - I don't understand how to change that.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Mar 22 2004 :  11:05:27 AM  Show Profile
He means that he selects a piece of code, hits the # key, and the #ifdef _DEBUG and #endif are inserted for him...

I knew this sounded familiar: (Warning: Private Forum link!) http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=1078

Yeah, I think it's a bug too... VAX should check to see that the last char... uh, well, you'd have to iterate from the end of the selected text, and if you came to a non-whitespace character that was not a CR, then you'd insert a CR before the #endif.

I think.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000