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
 Support __VA_ARGS__ variadic macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wishstudio
Starting Member

1 Posts

Posted - Dec 20 2017 :  9:49:29 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Dec 21 2017 :  07:09:54 AM  Show Profile  Reply with Quote
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

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