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
 Feature Requests
 Redundant semicolon on extern "C" usage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

g0dpEUmE
Junior Member

24 Posts

Posted - Apr 11 2026 :  08:13:57 AM  Show Profile  Reply with Quote
VA's inserting pair brackets function has a flaw of adding a semicolon at the end of extern "C" specification, making it: extern "C" {}; instead of common: extern "C" {}. Hope this can be improved.



feline
Whole Tomato Software

United Kingdom
19364 Posts

Posted - Apr 13 2026 :  08:40:16 AM  Show Profile  Reply with Quote
Have you considered setting up a VA Snippet for this? Something like shortcut "ext" and inserting the line:

extern "C" {}

Quick and simple, and something you can do without waiting for a code change in VA.

zen is the art of being at one with the two'ness
Go to Top of Page

g0dpEUmE
Junior Member

24 Posts

Posted - Apr 13 2026 :  09:00:26 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Have you considered setting up a VA Snippet for this? Something like shortcut "ext" and inserting the line:

extern "C" {}

Quick and simple, and something you can do without waiting for a code change in VA.



I'm doing so. If this can be improved later then that's better. Thanks.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19364 Posts

Posted - Apr 13 2026 :  12:55:37 PM  Show Profile  Reply with Quote
VA does check in other places if the semi-colon is needed or not, so I have put in a feature request for this:

case=166165

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000