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
 __VA_ARGS__ is not recognized
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sonai
New Member

2 Posts

Posted - Jul 04 2016 :  01:38:44 AM  Show Profile  Reply with Quote
Version Information




1) IDE : Visual Studio Professional 2015 Version 14.0.25123.00 Update 2
2) Version info from VA :
VA_X.dll file version 10.9.2102.0 built 2016.06.02
DevEnv.exe version 14.0.25123.0 Professional
msenv.dll version 14.0.25123.0
Comctl32.dll version 6.10.9600.18006
Windows Server 2012 R2 6.3 Build 9600
4 processors (x86-64, WOW64)
Language info: 949, 0x412

Platform: Project defined
Stable Includes:
C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;
C:\Program Files (x86)\Windows Kits\8.1\Include\shared;
C:\Program Files (x86)\Windows Kits\8.1\Include\um;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include;

Other Includes:

Stable Source Directories:
C:\Program Files (x86)\Windows Kits\10\Source\10.0.10240.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\atl;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\mfcm;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\mfc;

Problem Description

My issue is similar to this post(http://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=11669)
I'm using a macro to define enum for simple reflection.
When I use the following macro I can't see suggestions for enum value(which is defined in ESampleEnum by DEF_ENUM)




Also I can't see suggestions for enum value(which is defined in ESampleEnumClass by DEF_ENUM_CLASS)
Of course I can see it with visual studio intellisense.
But is there any solution to see enum value with only visual assist(without visual studio intellisense)?





Plain Code:





#define DEF_ENUM(T, ...) enum T { __VA_ARGS__ }
#define DEF_ENUM_CLASS(T, SIZE, ...) enum class T : SIZE { __VA_ARGS__ }

enum ESampleEnum2 { ECF_Red, ECF_Green};

DEF_ENUM(ESampleEnum, EC_Red, EC_Green, EC_Blue);

DEF_ENUM_CLASS(ESampleEnumClass, int, ED_Up, ED_Down, ED_Right, ED_Left);


int main()
{
ESampleEnum SampleEnumValue = EC_Red;
return 0;
}




ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Jul 04 2016 :  1:26:31 PM  Show Profile  Reply with Quote
Thank you for the clear report.

You are correct that your issue is related to the post you linked.

Currently, variadic macros are still not fully supported in Visual Assist.

Support should be coming within the next few builds.
Go to Top of Page

sonai
New Member

2 Posts

Posted - Jul 05 2016 :  06:35:52 AM  Show Profile  Reply with Quote
Thanks for the quick response.

I have one more question.
Could you share ETA for supporting variadic macros?
I will be very happy if it is available on this year :)
Go to Top of Page

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Jul 05 2016 :  12:14:33 PM  Show Profile  Reply with Quote
I expect support will come this year or early next.

But I do not have more information than what I have given you, unfortunately.
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