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
 Code Generation - Account for Macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

marstaik
Starting Member

USA
1 Posts

Posted - Jan 15 2020 :  4:54:47 PM  Show Profile  Reply with Quote
There are quite a few codebases where the "override", "final", and "inline" keywords (as an example) are replaced with Macros such as PROJ_OVERRIDE or PROJ_FINAL in order to alter the export flags to certain platforms.


However, if you go to create the definition for a declaration of a function that contains these specifiers, VAX tends to copy them as it does not recognize what they actually substitute for.

Also, when generating inherited functions, VAX does not add the virtual keyword to the override functions.

It would also be nice to tell VAX to generate those functions with custom Macro defines/keywords.

feline
Whole Tomato Software

United Kingdom
16353 Posts

Posted - Jan 16 2020 :  3:06:33 PM  Show Profile  Reply with Quote
We are considering a couple of changes that would help you here. We are considering allowing you to specify a macro that should be used instead of the "override" keyword, so I have added the idea of also replacing "final" and "inline" to the feature request:

case=88345

We are also considering checking what macros found around functions expand to, so we can work out when they expand to keywords, and so treat them correctly:

case=78572

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:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000