Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Support __VA_ARGS__ variadic macros

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
wishstudio Posted - Dec 20 2017 : 9:49:29 PM
This is a very important feature for writing powerful macros. While this feature seems to be complex, it is in the heart of many introspection and reflection solutions, such as DEFINE_STRUCT in boost hana library.

All major compilers are supporting this for years. VAX still lacks support on this. The code understanding and completion are totally messed.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 21 2017 : 07:09:54 AM
Technically the pre-processor expands all macros, so the rest of the compiler never actually see's them, which makes its life a lot easier. Sadly this isn't an option VA has, since it would require re-writing your code before parsing it.

We are aware of the problem with variadic macros, and it is our list of things to address, but as I say, its not as easy for us as it is for a compiler:

case=90294

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000